dotnet-sort
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global dotnet-sort --version 1.0.4
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-sort --version 1.0.4
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-sort&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-sort --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-sort
A global .NET Core tool for ordering alphabetically, length, the references of packages or imports in your .NET Core and .NET Standard projects.
Installation
dotnet tool install --global dotnet-sort
Usage
Usage:
dotnet-sort [options]
Options:
-h, --help Show command line help.
-p, --path Path where found the *.csproj or *.cs files (defaults to the current directory)
-a <APPLY> Apply to references or imports.
Examples:
Sorting references and imports on *.cs (default): -a=ri
Sorting only references on *.csproj: -a=r
Sorting only imports on *.cs: -a=i
-s <MODE> Sort by length/alphabetically
Examples:
alphabetically ascending (default): -s=a
alphabetically descendently: -s=ad
length ascending: -s=l
length descendently: -s=ld
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.