/dotnet-upgrade-guide:dotnet-upgrade-guidefrom dotnet-upgrade-guide
Upgrades .NET projects - TFM hops from .NET 8 to 11 with breaking changes by area, legacy csproj to SDK-style, packages.config to PackageReference, AOT and trim warnings, Thread.Abort removal, test framework moves. Use for "upgrade to .NET 10", SDK-style conversion, IL2026/IL3050 warnings, or moving to xUnit v3, MSTest v4 or MTP.
Ships in dotnet-upgrade-guide. 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.
Not for planning a whole-system modernization (modernize), ordinary C# refactors and nullable enablement (csharp), build failures unrelated to the upgrade (msbuild), package version work and Central Package Management (nuget), writing or running tests (dotnet-testing), or framework feature work (aspnet-core, ef-core, blazor).
Upgrade one hop at a time, commit at each boundary, and treat a clean build as half the job: behavioral changes compile fine and break at run time. Answer breaking-change questions from the hop references rather than the web, except to check security advisories published after them.
*.sln, *.slnx, or the .csproj files) and how the repo builds and tests (scripts, CI files, global.json).dotnet --list-sdks. If the target SDK is missing, stop and tell the user; don't install one silently (the csharp skill's SDK setup guidance covers a local, repo-scoped install).TargetFramework(s), the Sdk attribute (Microsoft.NET.Sdk.Web -> ASP.NET Core; UseWPF/UseWindowsForms -> desktop), whether it's SDK-style at all, packages.config, and the package set (Microsoft.EntityFrameworkCore.*, Microsoft.Extensions.Hosting, Microsoft.Data.Sqlite, System.Linq.Async, test frameworks). Note Dockerfiles, P/Invoke, BinaryFormatter, System.Text.Json polymorphism, and crypto or X.509 use: each selects a reference.search_graph, search_code) or the C# language server (csharp-ls) to find usages of affected APIs; fall back to grep.dotnet build --no-incremental), run the tests, and record pre-existing warnings and test counts as the baseline.packages.config: convert first, keeping the old TFM, per references/sdk-style.md. Moving off .NET Framework then also needs references/thread-abort.md wherever Thread.Abort or Response.End appear; ASP.NET (System.Web) to ASP.NET Core is a rewrite to plan with the user, not a hop.overview.md and the area files its table selects for this project.Directory.Build.props; for multi-targeting add the new TFM or replace the old one. Raise Microsoft.Extensions.*, Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore.* and other Microsoft packages to the matching major (in Directory.Packages.props under Central Package Management). dotnet restore, then a clean build. Commit.SYSLIB*) with NoWarn; fix them or ask. If BinaryFormatter is in use, stop and ask the user how to replace it. Commit.mcr.microsoft.com/dotnet/sdk:<ver>, aspnet:<ver>, runtime:<ver>) and any distro change; global.json sdk.version (keep rollForward, test and msbuild-sdks); CI setup steps and images; scripts that parse CLI output. Commit.dotnet build --no-incremental, the full test suite against the baseline counts, the container image if there is one, and the overview's smoke-test focus.Report per hop: TFM change, packages raised, breaking changes hit and how each was handled, behavioral changes reviewed and the decision, infrastructure files changed, test counts before and after.
| Read when | File |
|---|---|
| net8.0 -> net9.0 | references/net8-to-net9/overview.md |
| net9.0 -> net10.0 | references/net9-to-net10/overview.md |
| net10.0 -> net11.0 | references/net10-to-net11/overview.md |
Legacy csproj, packages.config, AssemblyInfo | references/sdk-style.md |
IL2026/IL3050/IL2070 warnings, IsAotCompatible, PublishAot readiness | references/aot-trimming.md |
Thread.Abort, ThreadAbortException, Response.End, SYSLIB0006 | references/thread-abort.md |
| xUnit v2 -> xunit.v3 | references/test-frameworks/xunit-v3.md |
| MSTest v1/v2 -> v3 | references/test-frameworks/mstest-v3.md |
| MSTest v3 -> v4 | references/test-frameworks/mstest-v4.md |
| VSTest -> Microsoft.Testing.Platform | references/test-frameworks/vstest-to-mtp.md |
| xUnit -> MSTest | references/test-frameworks/xunit-to-mstest.md |
| NUnit -> MSTest | references/test-frameworks/nunit-to-mstest.md |
Area files per hop (each overview links the same ones with its load conditions):
| Area | 8 -> 9 | 9 -> 10 | 10 -> 11 |
|---|---|---|---|
| C# compiler (always) | csharp-compiler | csharp-compiler | csharp-compiler |
| Core libraries (always) | core-libraries | core-libraries | core-libraries |
| SDK and MSBuild (always) | sdk-msbuild | sdk-msbuild | sdk-msbuild |
| ASP.NET Core | aspnet-core | aspnet-core | aspnet-core |
| EF Core, Sqlite | efcore | efcore | efcore |
| Cryptography | cryptography | cryptography | cryptography |
| Serialization, networking | serialization-networking | serialization-networking | - |
| Hosting, configuration | - | extensions-hosting | - |
| WinForms, WPF | winforms-wpf | winforms-wpf | - |
| Containers, interop | containers-interop | containers-interop | runtime-jit |
| Runtime, deployment | deployment-runtime | - | runtime-jit |
<LangVersion>latest</LangVersion> to unblock something; it ties the build to whichever SDK is installed.global.json with rollForward: disable or an exact old version makes the new SDK invisible; update it in the TFM commit.references/aot-trimming.md (opens in a new tab)references/net10-to-net11/aspnet-core.md (opens in a new tab)references/net10-to-net11/core-libraries.md (opens in a new tab)references/net10-to-net11/cryptography.md (opens in a new tab)references/net10-to-net11/csharp-compiler.md (opens in a new tab)references/net10-to-net11/efcore.md (opens in a new tab)references/net10-to-net11/overview.md (opens in a new tab)references/net10-to-net11/runtime-jit.md (opens in a new tab)references/net10-to-net11/sdk-msbuild.md (opens in a new tab)references/net8-to-net9/aspnet-core.md (opens in a new tab)references/net8-to-net9/containers-interop.md (opens in a new tab)references/net8-to-net9/core-libraries.md (opens in a new tab)references/net8-to-net9/cryptography.md (opens in a new tab)references/net8-to-net9/csharp-compiler.md (opens in a new tab)references/net8-to-net9/deployment-runtime.md (opens in a new tab)references/net8-to-net9/efcore.md (opens in a new tab)references/net8-to-net9/overview.md (opens in a new tab)references/net8-to-net9/sdk-msbuild.md (opens in a new tab)references/net8-to-net9/serialization-networking.md (opens in a new tab)references/net8-to-net9/winforms-wpf.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin dotnet-upgrade-guide