
Description
Convert to CPM is an agent skill from the dotnet/skills repository that moves .NET projects and solutions (.sln, .slnx) to NuGet Central Package Management, where package versions live in one Directory.Packages.props file. The agent first picks a mode. In guard mode, if any in-scope project still uses packages.config, it stops and explains that CPM requires PackageReference. In package-maintenance mode, a request to update or align packages only edits versions where they already live, rebuilds affected targets and then suggests CPM as a follow-up. Conversion mode runs only when the user explicitly asks to adopt CPM, and batches preflight, baseline, audit, edits, validation and a report so project behavior is preserved and the before and after state can be reviewed.…
Highlights
- Converts .sln and .slnx solutions to central package versions
- Guard mode stops on packages.config projects
- Package-maintenance mode for version bumps only
- Before and after evidence for review
- Restores and builds affected targets
Ratings & Reviews
No ratings yet
Be the first to rate convert-to-cpm.
People also visit

migrate-dotnet9-to-dotnet10
Migrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes

.NET MCP Server
AI assistant access to .NET SDK for projects, packages, building, testing

msbuild-antipatterns
DO NOT INVOKE when the primary request explicitly asks to convert, migrate
convert-to-cpm FAQ
What is Central Package Management?
A NuGet feature where package versions are declared once in Directory.Packages.props instead of in every project file. This skill converts existing solutions to it.
Will it convert my solution if I only ask to update packages?
No. A request to update, align or bump packages only edits those versions in their current locations. Conversion happens only when you explicitly ask to adopt or convert to CPM.
What if my projects use packages.config?
The skill stops, explains that CPM needs PackageReference, recommends migrating first, and does not change any files.
How do I add this skill to my agent?
Use the skills CLI: `npx skills add https://github.com/dotnet/skills --skill convert-to-cpm`. This pulls the skill from dotnet/skills on GitHub.
What are the best convert-to-cpm alternatives?
Popular alternatives to convert-to-cpm include nuget-manager, dotnet-upgrade and migrate-dotnet10-to-dotnet11. See all convert-to-cpm alternatives



