.NET tool that migrates a solution to use NuGet central package management (CPM).
Install the tool globally using the following command:
dotnet tool install --global CentralPackageManagementMigrator
Then change directory to where the solution file is and run the tool with:
centralpackagemanagementmigrator
This will examine all project files recursively, modify them to remove package version references, and create a Directory.packages.props
file in the current directory in which the tool was invoked from.
Description:
Migrates a codebase to use NuGet central package management (CPM)
Usage:
centralpackagemanagementmigrator [options]
Options:
-v, --verbosity <Critical|Debug|Error|Information|None|Trace|Warning> Verbosity level of the console logging output. [default: Information]
--version Show version information
-?, -h, --help Show help and usage information