PackageReferenceNormalizer 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global PackageReferenceNormalizer --version 1.0.1                
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.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PackageReferenceNormalizer&version=1.0.1                
nuke :add-package PackageReferenceNormalizer --version 1.0.1                

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 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.

Version Downloads Last updated
1.0.2 509 7/14/2022
1.0.1 439 7/14/2022
1.0.0 435 7/14/2022