Agent skill · Databases

migrate-dotnet8-to-dotnet9

Migrate a .NET 8 project to .NET 9 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 / C# 13 / ASP.NET Core 9 / EF Core 9, replacing BinaryFormatter (now always throws), resolving SYSLIB0054-SYSLIB0057, adapting to params span overload resolution, fixing C# 13 compiler changes, updating HttpClientFactory for SocketsHttpHandler, and resolving EF Core 9 migration/Cosmos DB changes. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 7 or earlier, greenfie

dotnetgithub.com/dotnetGitHub ↗
claude-codeMIT
Install
npx skills add dotnet/skills --skill migrate-dotnet8-to-dotnet9 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 11
SKILL.md size: 15 KB
Bundled scripts: none
Path: plugins/dotnet-upgrade/skills/migrate-dotnet8-to-dotnet9/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 4,927
Language: C#
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# .NET 8 → .NET 9 Migration Migrate a .NET 8 project or solution to .NET 9, systematically resolving all breaking changes. The outcome is a project targeting `net9.0` that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in the .NET 9 release. ## When to Use - Upgrading `TargetFramework` from `net8.0` to `net9.0` - Resolving build errors or new warnings after updating the .NET 9 SDK - Adapting to behavioral changes in .NET 9 runtime, ASP.NET Core 9, or EF Core 9 - Replacing `BinaryFormatter` usage (now always throws at runtime) - Updating CI/CD pipelines, Dockerfiles, or deployment scripts for .NET 9 ## When Not to Use - The project already targets `net9.0` and builds cleanly — migration is done. If the goal is to reach `net10.0`, use the `migrate-dotnet9-to-dotnet10` skill as the next step. - Upgrading from .NET 7 or earlier — address the prior version breaking changes first - Migrating from .NET Framework — that is a separate, larger effort - Greenfield projects that start on .NET 9 (no migration needed) ## Inputs | Input | Required | Description | |-------|----------|-------------| | Project or soluti

What's inside
Steps it walks through
  1. When to Use
  2. When Not to Use
  3. Inputs
  4. Workflow
  5. Step 1: Assess the project
  6. Step 2: Update the Target Framework
  7. Step 3: Resolve build errors and source-incompatible changes
  8. Step 4: Address behavioral changes
  9. Step 5: Update infrastructure
  10. Step 6: Verify
  11. Reference Documents
Ships with 10 files
  • references/aspnet-core-dotnet8to9.md
  • references/containers-interop-dotnet8to9.md
  • references/core-libraries-dotnet8to9.md
  • references/cryptography-dotnet8to9.md
  • references/csharp-compiler-dotnet8to9.md
  • references/deployment-runtime-dotnet8to9.md
  • references/efcore-dotnet8to9.md
  • references/sdk-msbuild-dotnet8to9.md
  • references/serialization-networking-dotnet8to9.md
  • references/winforms-wpf-dotnet8to9.md
More from skills
All skills →
About this skill
What does the migrate-dotnet8-to-dotnet9 skill do?

Migrate a .NET 8 project to .NET 9 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 / C# 13 / ASP.NET Core 9 / EF Core 9, replacing BinaryFormatter (now always throws), resolving SYSLIB0054-SYSLIB0057, adapting to params span overload resolution, fixing C# 13 compiler changes, updating HttpClientFactory for SocketsHttpHandler, and resolving EF Core 9 migration/Cosmos DB changes. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 7 or earlier, greenfie

How do I install it?

Run `npx skills add dotnet/skills --skill migrate-dotnet8-to-dotnet9 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dotnet/skills, a repository with 4,927 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going