PackageReferenceNormalizer 1.0.2
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
dotnet tool install --global PackageReferenceNormalizer --version 1.0.2
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 PackageReferenceNormalizer --version 1.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PackageReferenceNormalizer&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package PackageReferenceNormalizer --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Package Reference Normalizer
A tool that scans your project files and converts
<PackageReference Include="MyPackage">
<Version>1.2.3.4</Version>
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
to
<PackageReference Include="MyPackage" Version="1.2.3.4" PrivateAssets="all" />
- All elements are converted to attributes
IncludeAssets
is removed ifPrivateAssets=All
Instllation
To install the tool, run
dotnet tool install -g PackageReferenceNormalizer
Usage
Run PackageReferenceNormalizer c:\Dev\MyProject\*.csproj
This will scan all *.csproj
files in c:\Dev\MyProject
and all sub-folders
Run PackageReferenceNormalizer *.csproj
This will scan all *.csproj
files in the current directory and all sub-folders
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.