Skip to content

Retarget to .NET 10 (net9.0 is out of support since Nov 10, 2026) #887

Backlog

Description

@minhcurus

.NET 9 reached end of support on November 10, 2026, and all nine projects here still target net9.0 (global.json pins 9.0.101, and Api.dockerfile / self-host/Dockerfile use the 9.0 images). I also noticed the open Renovate PR #831 ("Update dotnet monorepo to v10"), which I think needs the target framework moved first.

I'd like to help with this. What I found when I looked through it:

  • TargetFramework net9.0 -> net10.0 in the 4 src and 5 test projects
  • global.json, Api.dockerfile and self-host/Dockerfile moved to the 10.0 SDK and images
  • Code worth a look against the documented breaking changes:
    • src/AdminConsole/Program.cs registers IActionContextAccessor, which is obsolete in ASP.NET Core 10
    • three BackgroundService subclasses (BasePeriodicBackgroundService, BaseDelayedPeriodicBackgroundService, StripeConfigurationUpdaterBackgroundService): in .NET 10, ExecuteAsync runs entirely on a background thread, so startup ordering can change
    • tests/Service.Tests/MDS/CacheHandlerTests.cs uses the X509Certificate2 byte[] constructor, obsolete since .NET 9

Would you accept a PR for this? To keep the review small I'd do it in separate commits (TFM, packages, code fixes, Docker/CI), with the full test suite passing after each. If you already have this planned internally, no problem, feel free to close.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions