Migrates .NET Framework solutions from packages.config to PackageReference and Central Package Management (Directory.Packages.props). Produces a staged, per-project migration plan with actual file edits to unify NuGet versions across multi-project solutions.
Ships in .NET Pack (legacy .NET Framework + Migration Pack to .NET 10). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Move a .NET Framework solution off packages.config and onto PackageReference, then lift all versions into a single Directory.Packages.props using Central Package Management (CPM). The goal is one source of truth for every NuGet version across every project - including third-party extension projects - so nobody ends up with two versions of the same package in one solution.
You don't need pasted files. Work from whatever target the user gives:
.sln and every project under itpackages.config, *.csproj, app.config/web.config.csproj + its packages.configgit clone --depth 1 <url> /tmp/repo && cd /tmp/repoDiscover the packaging state yourself with Glob/Grep/Bash instead of asking for a paste:
grep -rl "packages.config" <target> | grep -vi "/obj/\|/bin/"
# version drift across the solution:
grep -rhn "id=\"Newtonsoft.Json\"" --include=packages.config <target>
grep -rn "<PackageReference" --include=*.csproj <target>
Tell the user which projects you scanned, and always show the drift inventory before writing Directory.Packages.props.
The user has a packages.config-based solution (usually .NET Framework, often many projects) and wants to modernize package management, pin transitive versions, or stop version drift across modules and vendor extensions. They may point at a folder, paste a .csproj / packages.config, or just describe the mess.
If you don't have the files, ask for: the solution's project list, one representative .csproj + its packages.config, and whether third-party/vendor projects live in the same solution or reference the same packages.
Do it in two stages, never one. Each stage is independently verifiable and revertible:
packages.config -> PackageReference (per project). Behavior-preserving; versions still live in each .csproj.PackageReference -> Central Package Management. Hoist every version into one Directory.Packages.props; strip versions from projects.Doing Stage 2 before every project is on PackageReference will silently skip the leftover packages.config projects and leave you with a split-brain solution.
Visual Studio: right-click the project -> Migrate packages.config to PackageReference. It's the fastest correct starting point. Then verify by hand with the checklist below, because the migrator gets three things wrong often enough that you must check every time.
Transitive dependencies promoted to top-level. packages.config listed every transitive package as if it were direct. The migrator copies all of them into <PackageReference>, so a project that directly uses only Serilog now also "directly" references Serilog.Sinks.File, System.Text.Json, etc.
packages.config, app.config binding redirects, and the .nuget targets are left behind.
packages.config. Delete the auto-generated <bindingRedirect> block from app.config/web.config if present - with PackageReference on modern MSBuild, redirects are generated at build (AutoGenerateBindingRedirects). Remove any <Import> of NuGet.targets / packages\...\build\... from the .csproj.ExcludeAssets / PrivateAssets not set for build/analyzer/dev-only packages.
Microsoft.SourceLink.*, *.Build.Tasks, StyleCop, etc. should carry PrivateAssets="all" so they don't flow to consumers.<PackageReference> (transitives removed).packages.config deleted from disk and from the project file.<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> present for exe/test projects on .NET Framework.PrivateAssets="all" on analyzers / build-only / dev-only packages.Tip: SDK-style
.csprojis not required forPackageReference- a classic.csprojcan usePackageReferencetoo. Converting to SDK-style is a separate, larger step; don't couple it to this migration unless the user asks.
This is the part that actually kills version drift across a multi-project / multi-vendor solution.
Create Directory.Packages.props next to the .sln:
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Let a central version pin transitive dependencies too -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<!-- ONE version per package, for the WHOLE solution -->
<PackageVersion Include="Serilog" Version="3.1.1" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Dapper" Version="2.1.35" />
</ItemGroup>
</Project>
Each .csproj keeps the reference, drops the version:
<!-- Before -->
<PackageReference Include="Serilog" Version="2.10.0" />
<!-- After (version now comes from Directory.Packages.props) -->
<PackageReference Include="Serilog" />
Before writing Directory.Packages.props, inventory every version of every package across all projects, then pick one per package:
Package Versions found in solution -> Chosen
Newtonsoft.Json 12.0.3, 13.0.1, 13.0.3 -> 13.0.3
Serilog 2.10.0, 3.1.1 -> 3.1.1
System.Text.Json 4.7.2, 6.0.0, 8.0.4 -> 8.0.4 (verify - major jumps)
System.* / Microsoft.Extensions.* packages: keep them aligned with each other and with the target framework.With CentralPackageTransitivePinningEnabled=true, you can pin a transitive dependency's version once, centrally, and it applies everywhere - no fake direct references, no per-project edits. This is how you guarantee that every project (and every vendor extension project that builds in this solution) restores the same version of a shared transitive package.
For build/tooling packages that every project should carry identically, use:
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
(applies to all projects automatically; good for analyzers, SourceLink, banned-API analyzers).
When other companies build extension projects against the same solution, add a short NuGet.md at the repo root stating: "Versions are managed centrally in Directory.Packages.props. Do not put Version= on a PackageReference. To change a version, edit Directory.Packages.props and open a PR." Optionally enforce with an analyzer/CI check that fails on any PackageReference carrying a Version attribute.
Directory.Packages.props at repo root with ManagePackageVersionsCentrally=true.<PackageVersion> per package ID - no duplicates.<PackageReference> has no Version attribute.packages.config remains anywhere (git grep -l packages.config).CentralPackageTransitivePinningEnabled=true if you need to pin transitives.dotnet restore / VS restore succeeds with no NU1605 downgrade and no version-conflict warnings.dotnet list <proj> package --include-transitive shows the versions you expect.## Inventory
<table: package -> versions found across projects -> chosen version, with any risky major jumps flagged>
## Stage 1 - per project
<for each project: what to remove (transitives, packages.config, redirects), what to keep>
## Stage 2 - Directory.Packages.props
<the full generated file, ready to drop at repo root>
## Project edits
<the exact PackageReference lines to change, per csproj>
## Verify on your side
- restore with no NU1605 / version-conflict warnings
- dotnet list package --include-transitive spot check
- vendor guardrail note
packages.config.PackageReference works in classic .csproj; keep the migration small and revertible.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dotnet-pack:legacy-package-migratorfrom .NET Pack (legacy .NET Framework + Migration Pack to .NET 10)
npx claudepluginhub stefanthecode/ai-for-developers --plugin dotnet-pack12 skills in this plugin
/adonet-data-access-auditor(.NET) Audit and fix classic ADO.NET data-access code (SqlConnection / SqlCommand / SqlDataReader / DataSet) on .NET Framework. Use this skill whenever the user shares raw ADO.NET code, a DAL / repository built on SqlCommand, stored-proc calls, string-concatenated SQL, or mentions SQL injection, parameterized queries, connection leaks, "using / Dispose", reading the same column multiple times, transactions, or "why does my old data layer leak connections / is it safe". Always use this skill for classic ADO.NET review instead of answering from memory; it applies a fixed security + correctness + performance checklist and rewrites the code./aspnet-mvc-webapi-migrator(.NET) Migrate ASP.NET MVC 5 and Web API 2 code to ASP.NET Core on .NET 10, one controller at a time - actions, routes, filters, model binding, IHttpActionResult, child actions, OutputCache, bundling - plus the app plumbing around them - Global.asax, IHttpModule, IHttpHandler/.ashx, HttpContext.Current, Newtonsoft.Json formatters and XML content negotiation. Use this skill whenever the user wants to "migrate this controller", "Web API 2 to ASP.NET Core", "MVC 5 to .NET 10", "replace Global.asax", "convert this HTTP module to middleware", "port this .ashx handler", or is moving endpoints one by one in a strangler-fig migration. Always use this skill for MVC/Web API migrations instead of answering from memory; it keeps routes, status codes and payloads identical and proves it with parity tests./ef6-to-efcore-migrator(.NET) Move an Entity Framework 6 data layer to .NET 10 in two safe steps - first EF 6.5 on .NET 10 as a bridge (same model, same queries, no rewrite), then EF Core one DbContext at a time behind query parity tests. Covers DbModelBuilder fluent config, EDMX models, lazy loading, database initializers and Seed, DbFunctions/SqlFunctions, string Include, cascade-delete and orphan differences, and a baseline migration for an existing database. Use this skill whenever the user mentions EF6, EntityFramework 6, "EF6 to EF Core", EDMX, DbModelBuilder, "EF6 on .NET 8/10", lazy loading differences, or is moving a data layer in a .NET Framework migration. Always use this skill for EF6 migrations instead of answering from memory./legacy-config-auth-migrator(.NET) Migrate the cross-cutting parts of an ASP.NET Framework app to .NET 10 - web.config and transforms to appsettings + Options, machineKey to Data Protection, Forms authentication / Membership / OWIN cookies to ASP.NET Core cookie auth or Identity (with remote authentication while both apps run), <location> authorization to policies, session and Application state, BinaryFormatter, customErrors and Application_Error. Use this skill whenever the user asks about "web.config in .NET 10", "ConfigurationManager replacement", "machineKey", "Forms authentication to ASP.NET Core", "Membership to Identity", "share login between old and new app", "session in ASP.NET Core", "replace BinaryFormatter", or plans how auth and session work during a migration. Always use this skill for these cross-cutting pieces instead of answering from memory; they are where migrations break for users./migration-assessment-report(.NET) Assess a .NET Framework solution (WebForms, MVC 5, Web API 2, WCF, EF6, class libraries) for a move to .NET 10 and produce a self-contained HTML report - architecture diagrams, a blocker scan, a target per WebForms page (Razor Pages, Blazor or MVC), effort in person-days with and without AI, and a clear split of what an AI agent can do versus what needs a human. Use this skill whenever the user asks "how hard is it to move this to .NET 10", "assess this legacy solution", "give me a migration estimate", "what would it take to modernize this", "should we migrate this WebForms app", or wants a migration report for a manager or a client. Always use this skill for migration assessments instead of answering from memory; it runs a deterministic scanner, reviews the result and renders the report./migration-safety-net(.NET) Lock the current behavior of a .NET Framework app BEFORE migrating it - HTTP parity tests (record the old app's responses, then check the new .NET 10 app or the YARP host answers the same), Playwright flow tests for postback screens, and characterization (golden master) tests for business logic. Use this skill whenever the user is about to migrate or refactor legacy code and asks for "parity tests", "characterization tests", "golden master", "how do I know the new app behaves the same", "lock the behavior first", "regression tests before migration", or before any route moves from the old app to the new one. Always use this skill to build the safety net instead of writing ad-hoc tests; it produces a reusable record/verify harness and an accepted-differences log.Other plugins' skills for the same job