.NET 11 shipped on November 10, 2026 with SDK 11.0.100 and C# 15. It is a Standard Term Support (STS) release, supported until November 14, 2028. The headline language features are union types, closed hierarchies, collection expression arguments, extension indexers and labeled break/continue. On the same day .NET 8 and .NET 9 went out of support, so if you are still on either, you have to move to .NET 10 LTS or .NET 11 now. This guide covers what actually shipped, how to choose between 10 and 11, and a step-by-step upgrade checklist that includes the breaking changes most likely to hit you.

What shipped in .NET 11

The official announcement and the What's new in .NET 11 overview are long. These are the parts that matter for most backend and library teams.

Area What changed Why you care
C# 15 Unions, closed hierarchies, with(...) in collection expressions, extension indexers, labeled jumps Exhaustive pattern matching without hand-rolled OneOf types
Runtime Runtime Async (opt-in), new x86-64-v2 hardware baseline, JIT devirtualization and bounds-check work Cleaner async stack traces; old CPUs stop working
Libraries Zstandard in System.IO.Compression, expanded Process APIs, System.Text.Json union support, LINQ FullJoin Fewer third-party packages
ASP.NET Core 11 OpenAPI 3.2 by default, async validation, SignalR auth refresh, Blazor CacheView One silent output change (OpenAPI)
EF Core 11 Join pruning, FullJoin translation, SQL Server vector indexes (experimental) Requires .NET 11, so it ties your ORM version to your runtime
SDK Native AOT CLI host and MSBuild server on by default, dotnet test timeouts and failure limits, --min-publish-age-hours for NuGet sources Faster CLI, supply-chain control

C# 15 language features

C# 15 is the default language version for projects targeting net11.0. According to What's new in C# 15, everything except the memory-safety work is GA and needs no <LangVersion>preview</LangVersion>. The samples below follow the final syntax in that doc.

Union types. A union declaration lists case types. Each case type converts implicitly to the union, and switch expressions are checked for exhaustiveness:

public record class Cat(string Name);
public record class Dog(string Name);
public record class Bird(string Name);

public union Pet(Cat, Dog, Bird);

Pet pet = new Dog("Rex");

string name = pet switch
{
    Dog d => d.Name,
    Cat c => c.Name,
    Bird b => b.Name,
    null => "no pet", // default(Pet) holds null, so handle it
};

Two details from the union reference matter in production code. First, the compiler lowers a union declaration to a struct that stores its contents in an object? Value property, so value-type cases such as int get boxed. If that matters on a hot path, you can write a custom union type with the [Union] attribute and the non-boxing HasValue/TryGetValue pattern. Second, a default-initialized union contains null, and the compiler does not always warn when the null arm is missing. In that case the switch throws SwitchExpressionException at runtime, so add a null arm whenever a default value can reach it.

Closed hierarchies. The closed modifier restricts derivation to the declaring assembly, which lets the compiler treat the set of direct subclasses as complete:

public closed record class GateState;
public record class Closed : GateState;
public record class Open(float Percent) : GateState;

string Describe(GateState state) => state switch
{
    Closed => "closed",
    Open(var percent) => $"{percent}% open",
};

A closed class is implicitly abstract. Exhaustiveness does not carry down the hierarchy: a non-closed subclass can still be extended from other assemblies, so mark intermediate levels closed too if you need the check to go deeper.

Collection expression arguments. A with(...) first element passes arguments to the collection's constructor:

string[] values = ["one", "two", "three"];

List<string> names = [with(capacity: values.Length * 2), .. values];
HashSet<string> set = [with(StringComparer.OrdinalIgnoreCase), "Hello", "HELLO", "hello"];

Extension indexers. These build on the C# 14 extension blocks. An indexer needs a named receiver:

public static class SequenceIndexer
{
    extension(IEnumerable<int> sequence)
    {
        public int this[int index] => sequence.ElementAt(index);
    }
}

Labeled break and continue. These replace the boolean-flag and goto workarounds for nested loops:

outer: for (int row = 0; row < grid.Height; row++)
{
    for (int column = 0; column < grid.Width; column++)
    {
        if (grid[row, column].IsBlocked) continue outer;
        if (grid[row, column].IsGoal) break outer;
    }
}

C# 15 also allows non-virtual static interface members on runtimes without default-interface support. The memory-safety model (the unsafe(...) expression, the safe keyword, pointer relaxations) is still a preview feature behind LangVersion preview, so don't build production code on it.

Runtime Async: opt-in, not default

Runtime Async moves async suspension and resumption out of compiler-generated state machines and into the runtime. The runtime what's-new page shows a three-level async call chain going from 13 live stack frames to 5. The .NET libraries themselves are compiled with it. For your own code it is opt-in, and the announcement still describes it as preview:

<PropertyGroup>
  <TargetFramework>net11.0</TargetFramework>
  <Features>runtime-async=on</Features>
</PropertyGroup>

Unlike in .NET 10, you no longer need EnablePreviewFeatures. The old DOTNET_RuntimeAsync environment variable has been removed. My advice is to enable it in one service, compare allocations and p99 latency against the state-machine build, and only then roll it out more widely. Microsoft is explicitly asking for throughput and size reports, which tells you it is still being tuned.

ASP.NET Core 11 and EF Core 11 highlights

ASP.NET Core 11 adds async validation for minimal APIs and Blazor forms (AsyncValidationAttribute, IAsyncValidatableObject), C# union support in JSON bodies, a [ShortCircuit] attribute, native OpenTelemetry HTTP server tracing and Zstandard response compression. EF Core 11 prunes unnecessary to-one joins in split queries, translates the new FullJoin operator, adds MaxByAsync/MinByAsync, and can create SQL Server vector and full-text indexes through migrations. The EF team measured 29% and 22% speedups from the join changes in their own benchmark scenarios; your numbers will depend on your schema. EF Core 11 requires the .NET 11 runtime, so if you stay on .NET 10 you stay on EF Core 10.

STS 11 or LTS 10: which one to pick

With .NET 8 and 9 both reaching end of support on November 10, 2026, every team on those versions has to choose.

Version Type Released End of support
.NET 11 STS Nov 10, 2026 Nov 14, 2028
.NET 10 LTS Nov 11, 2025 Nov 14, 2028
.NET 9 STS Nov 12, 2024 Nov 10, 2026 (ended)
.NET 8 LTS Nov 14, 2023 Nov 10, 2026 (ended)

Since STS support was extended to 24 months, .NET 10 and .NET 11 now reach end of support on the same day. LTS no longer buys you a longer runway than the release after it, so the choice comes down to features against risk:

  • Choose .NET 11 if you want unions or closed hierarchies, EF Core 11 query improvements, OpenAPI 3.2, or you deploy often and run a decent test suite. You lose nothing on support length.
  • Stay on (or move to) .NET 10 if you depend on third-party libraries that haven't validated .NET 11, if old x86 hardware is still in your fleet (see the hardware baseline below), or if a regulated change process makes every runtime bump expensive.
  • From .NET 8, going straight to 11 is reasonable. Read the .NET 9, 10 and 11 breaking-change lists in order, because they add up.

Upgrade checklist

1. Install the SDK and pin it with global.json

Install SDK 11.0.100 from the .NET 11 download page, then pin it so CI and every developer machine build with the same SDK:

{
  "sdk": {
    "version": "11.0.100",
    "rollForward": "latestFeature"
  }
}

latestFeature lets later 11.0.1xx-and-up feature bands roll forward but never jumps to 12. One gotcha from the SDK breaking changes: dnx scripts bypass global.json SDK selection, so tool invocations through dnx may run on a different SDK than your build.

2. Retarget projects

Change TargetFramework in each project, or once in Directory.Build.props:

<Project>
  <PropertyGroup>
    <TargetFramework>net11.0</TargetFramework>
  </PropertyGroup>
</Project>

Libraries consumed by apps on both runtimes should multi-target with <TargetFrameworks>net10.0;net11.0</TargetFrameworks>. Then bump every Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore.* and Microsoft.Extensions.* package to 11.x. Also read the note on some Microsoft.Extensions packages moving into the shared framework, which changes which assembly version your app actually loads.

3. Fix the compiler breaks from C# 15

The compiler breaking changes are small, but they fail builds:

  • union and closed are now contextual keywords in type-declaration contexts. A type named union or closed must be escaped as @union / @closed.
  • with(...) as the first element of a collection expression is now parsed as constructor arguments. If you had a method called with, call it as @with(...).
  • A Span<T> collection expression's safe-context is now declaration-block, so some span assignments inside loops stop compiling.
  • nameof(this.P) inside attributes is now an error. Use nameof(P).

4. Review runtime and library breaking changes

The full list is on Breaking changes in .NET 11. These are the ones I would grep for first in a typical service:

Change Impact
Minimum hardware: x86-64-v2 x86/x64 CPUs without SSE4.2/POPCNT fail at startup with "The current CPU is missing one or more of the baseline instruction sets"
IHost.RunAsync/StopAsync throw when a BackgroundService fails Worker crashes now surface as exceptions from the host
Empty strings in chained configuration override earlier providers An empty env var can now blank out an appsettings.json value
DI scope disposal aggregates exceptions Exception types change in disposal error handling
Math.Round and decimal/BigInteger floating-point conversions are correctly rounded Golden-file tests with rounded numbers may change
Floating-point to small-integer conversions saturate Unchecked (byte)someDouble results change at the edges
CRC32 validation when reading ZIP entries; TAR header checksums verified Corrupt archives that used to "work" now throw
Named mutexes default to user scope on Unix Cross-user mutex coordination breaks
SslStream server-side AIA certificate downloads disabled by default Servers relying on AIA fetching of intermediates need the full chain configured

The hardware baseline mostly affects old on-prem servers and CI runners built on pre-2013 CPUs. Arm64 minimums didn't change on Linux or macOS, but ReadyToRun images may fall back to JIT on older Arm cores.

For ASP.NET Core, read the ASP.NET Core 11 breaking changes. Two you will notice:

  • AddOpenApi() now emits OpenAPI 3.2. If your client generator or gateway only understands 3.1, pin the version:
builder.Services.AddOpenApi(options =>
{
    options.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_1;
});
  • The ConcurrencyLimiter middleware package is gone. No 11.x package exists, so restore fails. Move to AddRateLimiter with AddConcurrencyLimiter from System.Threading.RateLimiting.

Hosting now also emits OpenTelemetry HTTP semantic-convention tags by default, so check your dashboards and alert queries for renamed tags. If you are weighing where those traces should go, see the OpenTelemetry vs Datadog guide.

5. Update Docker base images

The 11.0 tags are on MCR. The default 11.0 tag now resolves to Ubuntu 26.04 ("resolute"). I checked the manifest digests: aspnet:11.0 and aspnet:11.0-resolute are identical, while 10.0 matched 10.0-noble. So a plain tag bump also changes the OS under you.

FROM mcr.microsoft.com/dotnet/sdk:11.0 AS build
WORKDIR /src
COPY . .
RUN dotnet publish -c Release -o /app

FROM mcr.microsoft.com/dotnet/aspnet:11.0-resolute-chiseled
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "MyApi.dll"]

Other variants include 11.0-alpine3.24, 11.0-azurelinux4.0-distroless, 11.0-azurelinux3.0 and 11.0-nanoserver-ltsc2025. There are no Debian-based 11.0 tags, so if you were on -bookworm-slim, pick Ubuntu chiseled or Azure Linux distroless and retest any native dependencies (ICU, libgdiplus, fonts). If you run dotnet test inside a container, note the new breaking change: it needs a writable VSTest artifacts base directory.

6. Update CI

Point your pipeline at global.json so the SDK version lives in one place:

- uses: actions/setup-dotnet@v6
  with:
    global-json-file: global.json
- run: dotnet restore
- run: dotnet build --no-restore -c Release
- run: dotnet test --no-build -c Release

setup-dotnet v6.1.0 is the current release as of November 2026. The new dotnet test options --timeout and --maximum-failed-tests are worth adding to cut CI time on hung or badly broken runs. If you are rethinking the pipeline anyway, the Dagger vs GitHub Actions comparison covers the trade-offs.

7. Adopt C# 15 features gradually

Don't rewrite working code to use unions on day one. Good first targets are result-or-error return types that currently use a OneOf package or a marker interface, and message/command dispatchers where a missed case is a real bug. System.Text.Json serializes C# unions in .NET 11, and minimal APIs accept them in JSON bodies. Check your own wire format before exposing unions on public APIs. A diff checker and JSON formatter make it quick to compare payloads before and after.

Frequently Asked Questions

When was .NET 11 released and how long is it supported?

.NET 11 was released on November 10, 2026, with SDK 11.0.100. It is an STS release with 24 months of support, ending November 14, 2028, which is the same end date as .NET 10 LTS.

Are .NET 8 and .NET 9 still supported?

No. Both reached end of support on November 10, 2026, and no longer get security patches. Move to .NET 10 or .NET 11. The final patch versions listed on the support policy page are 8.0.34 and 9.0.23.

Do C# 15 union types need preview mode?

No. Unions, closed hierarchies, collection expression arguments, extension indexers and labeled break/continue are all available by default when targeting net11.0. Only the memory-safety feature still requires LangVersion preview.

Is Runtime Async enabled by default in .NET 11?

Only inside the .NET libraries. For your own code you opt in with <Features>runtime-async=on</Features> in the project file. EnablePreviewFeatures is no longer required, but Microsoft still calls the feature preview in the release announcement.

Can I use EF Core 11 on .NET 10?

No. EF Core 11 requires the .NET 11 SDK and runtime and won't run on earlier versions or .NET Framework. If you stay on .NET 10 LTS, stay on EF Core 10.

Which Docker tag should I use for .NET 11?

mcr.microsoft.com/dotnet/aspnet:11.0 currently resolves to Ubuntu 26.04 (11.0-resolute). For smaller, non-root production images use 11.0-resolute-chiseled or 11.0-azurelinux4.0-distroless, and pin a patch tag such as 11.0.0 if you need reproducible builds.

Bottom Line

.NET 11 is the first STS release that costs you nothing in support length compared with the current LTS, which makes it the default choice for actively developed services. The language work is the real reason to upgrade: unions and closed hierarchies finally give C# exhaustive, compiler-checked sum types. For most codebases the upgrade itself is a global.json bump, a TargetFramework change, a package refresh and a careful read of the behavioral breaking changes. Watch out for the OpenAPI 3.2 default, configuration empty-string overrides, the x86-64-v2 hardware floor and the Ubuntu 26.04 base image. If you are still on .NET 8 or 9, you are already unpatched, so schedule the upgrade now. If you'd like a parallel read from another ecosystem's release this fall, see our Python 3.15 upgrade guide.