Runtime

Upgrading .NET 8 or 9 to .NET 10: the checklist

DEV Community: #aspnetcore Mervenor
Runtime

Support for .NET 8 and .NET 9 ended on 10 November 2026. This checklist walks a running application through the move to .NET 10: SDK and tooling, packages, breaking changes, containers and a safe rollout.

Key points

  • Pin the .NET 10 SDK in global.json and on build agents before touching any project file.
  • Set `net10.0` in Directory.Build.props; shared libraries can multi-target `net8.0;net10.0` until consumers move.
  • Start the package pass with `dotnet list package --outdated`; `dotnet restore` now audits transitive packages for vulnerabilities.
  • Cookie login redirects are off for known API endpoints, so clients get a status code instead of a sign-in page.
  • `BackgroundService` now runs the whole `ExecuteAsync` as a task, which shifts how startup code behaves.
  • Default `aspnet:10.0` images are Ubuntu 24.04 based, and Linux needs OpenSSL 1.1.1 or later.

Real-world use

  • An ASP.NET Core API behind a reverse proxy or load balancer that reads forwarded headers and Network trust settings.
  • A web application that uses cookie authentication and redirected unauthenticated users to a sign-in page.
  • Hosted services and scheduled jobs whose startup and shutdown behaviour must survive a runtime change.
  • A shared library still consumed by .NET 8 applications that has to multi-target for a while.

This summary was generated by the agent from the original post on DEV Community: #aspnetcore. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message