Skip to content

Add support for .NET 11 #60

Open

Description

@waldekmastykarz

.NET 11 shipped on Nov 10, 2026.

Current state

DevProxy.Hosting already works in .NET 11 Aspire app hosts. The package targets net10.0;net9.0;net8.0, so a .NET 11 app host uses the net10.0 build. Aspire.Hosting 13.6.4 targets only net8.0, so there's no conflict. Neither AddDevProxyExecutable (self-contained binary) nor AddDevProxyContainer (ghcr.io/dotnet/dev-proxy) depends on the app host's .NET version.

Proposed changes

  • Add net11.0 to TargetFrameworks. Keep net8.0 and net9.0: they're out of support, but projects still use them and we shouldn't break them.
  • Fix the SDK version in .github/workflows/build.yml and publish.yml. Both install 9.0.x, which can't build the net10.0 (or net11.0) target. They probably work only because the runner image already has a newer SDK. Use 11.0.x, which can build all targets.
  • Check whether Aspire.Hosting should be updated to a version that officially supports .NET 11 app hosts.
  • Test an Aspire app host targeting net11.0 with both AddDevProxyExecutable and AddDevProxyContainer.

Activity

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

Metadata

Metadata

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