PackageReferenceNormalizer 1.0.2

.NET 5.0 .NET Core 3.1
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
nuke :add-package PackageReferenceNormalizer --version 1.0.2

Package Reference Normalizer

Build Status NuGet Status

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 if PrivateAssets=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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.2 94 7/14/2022
1.0.1 98 7/14/2022
1.0.0 91 7/14/2022