CentralPackageManagementMigrator.Runner 0.2.2

dotnet tool install --global CentralPackageManagementMigrator.Runner --version 0.2.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 CentralPackageManagementMigrator.Runner --version 0.2.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CentralPackageManagementMigrator.Runner&version=0.2.2
nuke :add-package CentralPackageManagementMigrator.Runner --version 0.2.2

Tool to migrate solution to work with Central Package Management. learn about it Central Package Management.

It's scanning all project files by pattern given (-p) For each PackageRefence:

  • Create Directory.Packages.props file holding the package version
  • Remove version for all project files
  • Optional (on by default): update nuget config to state Source Mappings - only for nuget.config holding one source - learn about it at Package Source Mapping

Running tool example:

 CpmMigrator -s C:\git\ASI\prj\testPrj.sln -p *.sfproj *.Build.props

Command line options

 Required option 's, Solution path' is missing.

  -s, --Solution path                          Required. Solution full path

  -p, --Project patterns                       Project Pattern (optional) will use *.csproj in any case

  -n, --Add Source Mappings to nuget.config    (Default: true) Add Source Mappings only for nuget.config with one source
                                               otherwise fails

  --help                                       Display this help screen.

  --version                                    Display version information.

Note: Consolidate nuget versions before running in case of mutiple version of the same nuget - will fail

Product Compatible and additional computed target framework versions.
.NET 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. 
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
0.2.2 438 11/2/2022
0.2.1 386 10/30/2022
0.2.0 395 10/30/2022
0.1.1 370 10/27/2022
0.1.0 407 10/26/2022