Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Converts .NET projects and solutions to NuGet Central Package Management via Directory.Packages.props; aligns package versions across them.
Use this skill ↓36% 27%−9 ptsof test cases passed
Passed 6 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Audit only the resolved scope. Use the baseline package snapshot plus one targeted search across in-scope project, .props, and .targets files; do not explore unrelated repository files. Read the sections below only for complexities that were actually detected.
If a PackageReference uses a property for its version (e.g., Version="$(SomePackageVersion)"), trace the property definition. If the property is defined in a Directory.Build.props, .props import, or the project file itself, note it for the user. These require manual decisions about whether to replace the property with a literal version in Directory.Packages.props or to keep the property and use it within Directory.Packages.props.
See msbuild-property-handling.md for decision workflow.
If a PackageReference is inside a conditional <ItemGroup> (e.g., Condition="'$(TargetFramework)' == 'net8.0'"), the version must still be centralized. The PackageVersion entry in Directory.Packages.props can use the same condition, or the project can use VersionOverride if the condition is project-specific.
If the same package ID appears with different versions across projects, this is a version conflict that requires a user decision before proceeding. CPM requires a single <PackageVersion> per package (unless VersionOverride is used), so conflicts must be resolved.
For each conflict, present a focused summary showing:
dotnet package list --vulnerable if available)Then present the resolution options with their trade-offs:
VersionOverride — projects that need a different version keep it via VersionOverride in their project file. The central <PackageVersion> holds the default. This preserves the status quo but partially undermines centralization for that package.Do not upgrade any package beyond the highest version already in use across the scope — this avoids introducing version incompatibilities or breaking changes that are unrelated to the CPM conversion itself. Instead, note any known advisories or upgrade opportunities as follow-up items in the post-conversion report for the user to address after the conversion is complete.
If the user already supplied a conflict strategy, treat that as the decision and do not ask again. Otherwise ask the user to choose for each conflict and stop before editing. After each decision, record which projects will see a version change and which will stay the same.
VersionOverride unless the user is prepared to validate all affected projects.Next to this one in the catalogue, plus more from the same author.