migrate-dotnet8-to-dotnet9

Migrate .NET 8 projects to .NET 9 by updating target framework and dependencies.

5.1k|377|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dotnet/skills --skill migrate-dotnet8-to-dotnet9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrate-dotnet8-to-dotnet9
Source: https://github.com/dotnet/skills/tree/main/plugins/dotnet-upgrade/skills/migrate-dotnet8-to-dotnet9
Command: npx skills add https://github.com/dotnet/skills --skill migrate-dotnet8-to-dotnet9

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex process of migrating .NET 8 projects to .NET 9, ensuring all breaking changes are addressed and the project builds and runs correctly.

Core Features & Use Cases

  • Target Framework Update: Updates project files to target net9.0.
  • Dependency Versioning: Updates relevant NuGet packages to their .NET 9 equivalents.
  • Breaking Change Resolution: Systematically identifies and fixes source-incompatible and behavioral changes introduced in .NET 9, including C# 13 compiler changes, ASP.NET Core 9, and EF Core 9 updates.
  • Infrastructure Updates: Guides updates for Dockerfiles, CI/CD pipelines, and Visual Studio configurations.
  • Use Case: You have a .NET 8 web application that needs to be upgraded to .NET 9. This Skill will guide you through changing the target framework, updating packages, and resolving any compilation or runtime issues caused by the new version.

Quick Start

Use the migrate-dotnet8-to-dotnet9 skill to upgrade the project located at '/path/to/your/project.csproj'.

Frequently Asked Questions about migrate-dotnet8-to-dotnet9

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a .NET 8 project to .NET 9?

To migrate a .NET 8 project to .NET 9, you update the TargetFramework to net9.0, upgrade NuGet packages, resolve breaking changes in C# 13, ASP.NET Core 9, and EF Core 9, and update deployment infrastructure configurations.

What breaking changes are introduced in .NET 9?

.NET 9 introduces source-incompatible and behavioral changes in core libraries, C# 13 compiler updates, ASP.NET Core 9, and EF Core 9, requiring systematic resolution of build errors and runtime behavioral differences during migration.

Can I upgrade an ASP.NET Core 8 web application to .NET 9 seamlessly?

Yes, you can upgrade an ASP.NET Core 8 web application to .NET 9 by updating the target framework, updating relevant NuGet packages to their .NET 9 equivalents, and resolving compilation or runtime issues caused by the new version.

What infrastructure configurations need updating for a .NET 9 migration?

Migrating to .NET 9 requires updating infrastructure configurations including Dockerfiles, CI/CD pipelines, and Visual Studio configurations to ensure the upgraded project builds and deploys correctly across the new target framework.

How do I resolve build errors after updating the TargetFramework to net9.0?

To resolve build errors after updating the TargetFramework to net9.0, systematically identify and fix source-incompatible changes introduced in .NET 9 core libraries, C# 13, ASP.NET Core 9, and EF Core 9 updates.

Does EF Core 9 require package updates when upgrading from .NET 8?

Yes, upgrading from .NET 8 requires updating relevant NuGet packages, including EF Core 9 equivalents, to address dependency versioning and resolve behavioral differences introduced in the new framework.