On November 10, at .NET Conf 2026, Microsoft officially launched .NET 11. On the same day, something happened that, for many teams, matters more than any new feature: .NET 8 and .NET 9 went out of support. If your application runs on one of them, from November 10 it will no longer receive security patches.
So the question "Is the upgrade worth it?" is no longer theoretical. In this article, we go through what .NET 11 brings (C# 15 with union types, runtime, ASP.NET Core, EF Core, AI, and tooling), what can break the upgrade, and finally, the actual decision depending on the version you are starting from.
In brief
- .NET 11 is an STS version, with support until November 14, 2028, exactly the same date as .NET 10 LTS.
- C# 15 finally brings union types and closed hierarchies, with exhaustiveness checking in
switch. - Runtime: hundreds of optimizations in JIT and libraries, plus Runtime Async, with much cleaner stack traces in debugger and profiler.
- ASP.NET Core: union types in JSON, asynchronous validation, OpenAPI 3.2 by default. EF Core 11 generates SQL with fewer unnecessary joins.
- AI: MCP server template included in SDK, Microsoft.Extensions.AI, and Microsoft Agent Framework.
- Attention to upgrade: higher minimum processor requirements, corrected numeric rounding (decimal,
Math.Round), and removal of the compatibility package from .NET MAUI.
Support schedule: STS no longer means "short term"
Since September 2025, Microsoft has extended support for STS versions to 24 months. The effect is clearly seen in the updated support policy:
| Version | Type | Release | End of support |
|---|---|---|---|
| .NET 8 | LTS | November 14, 2023 | November 10, 2026 (no support) |
| .NET 9 | STS | November 12, 2024 | November 10, 2026 (no support) |
| .NET 10 | LTS | November 11, 2025 | November 14, 2028 |
| .NET 11 | STS | November 10, 2026 | November 14, 2028 |
In other words, if you choose a version today, .NET 10 and .NET 11 offer you the same support horizon. The classic argument "we stay on LTS, it's safer" is no longer about support duration but about maturity: .NET 10 already has a year of patches in production, and the library ecosystem is fully aligned with it.
C# 15: union types and closed hierarchies
The most anticipated language change in recent years. Until now, a type that could be either one or another was modeled with class hierarchies, libraries like OneOf, or most often with exceptions. C# 15 adds two native mechanisms.
Union types
A union declares a type whose value is one of several case types. Each type has an implicit conversion to the union, and the compiler checks if a switch handles them all. An example any Romanian developer recognizes, the result of sending an invoice in e-Factura:
public record Accepted(string UploadIndex);
public record Rejected(string[] Errors);
public record Pending(DateTimeOffset Since);
public union SubmissionResult(Accepted, Rejected, Pending);
SubmissionResult result = new Accepted("5012345678"); // implicit conversion
string message = result switch
{
Accepted a => $"Accepted, index {a.UploadIndex}",
Rejected r => $"Rejected: {string.Join("; ", r.Errors)}",
Pending p => $"Processing since {p.Since:HH:mm}",
};
The real value comes from what happens six months later, when someone adds a new case, for example Cancelled. The compiler flags every switch that does not handle it. With a regular class hierarchy or exceptions, you would have found out in production.
Union types also work with System.Text.Json, so also in JSON bodies in Minimal APIs and MVC, and the OpenAPI document describes them with anyOf. Support covers only JSON bodies, not route parameters, query strings, headers, or forms.
Closed hierarchies
When the hierarchy is yours, the closed modifier tells the compiler that there are no other direct descendants outside those in the same assembly. The result is the same: exhaustive switch statements, without the _ branch just to silence the warning.
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) => $"open {percent}%",
// no warning: all direct descendants are handled
};
Practical rule: use union when combining already existing types that do not have a common base, and closed when modeling a hierarchy you control.
Other new features in C# 15
- Arguments in collection expressions:
HashSet<string> set = [with(StringComparer.OrdinalIgnoreCase), "a", "A"];You can now provide the capacity or comparer directly in the expression. - Extension indexers, built on the
extensionblocks introduced in C# 14. breakandcontinuewith label, for exiting nested loops without boolean variables orgoto.- Memory safety, still in preview: the rules for
unsaferelate to operations that actually access unmanaged memory, not pointer types.
Runtime and performance
The announcement talks about "hundreds" of optimizations, without a global percentage. For concrete numbers, the reference remains Stephen Toub's annual performance article. In short, from the runtime documentation:
- JIT: removes more redundant bounds checks, devirtualizes more, and evaluates more operations at compile time.
- Native AOT: interface calls use a common mechanism, with smaller code and better throughput for code that heavily uses interfaces.
- Hardware: FP16 instructions for
Halfon x64 and Arm64. - Diagnostics: on a crash, the process writes a report with the managed stack trace and runtime state. This feature existed only on mobile, now it is also available on Linux and macOS.
Runtime Async
The most interesting fundamental change: suspension and resumption of async methods move from compiler-generated state machines into the runtime itself. The most visible gain is in debugging and profiling. Live stack traces show the real call chain, and the example in the documentation reduces from 13 frames to 5. .NET libraries are already compiled this way. For your own code, activation is per project:
<PropertyGroup>
<TargetFramework>net11.0</TargetFramework>
<Features>runtime-async=on</Features>
</PropertyGroup>
Libraries
- Process API gets "one-shot" methods: you start a process and get the output and exit code in a single call, without the ceremony of
ProcessStartInfoand manual stream reading. - Zstandard enters
System.IO.Compression, and reading valid ZIP archives now validates CRC32. - LINQ has
FullJoin, which keeps unmatched elements from both sources. - System.Text.Json serializes C# union types and can write JSON Lines directly from an asynchronous sequence.
- Four in-memory stream adapters, including
StringStreamandReadOnlySequenceStream, for cases where an API requires aStreamand you already have the data in memory.
ASP.NET Core and Blazor
From the ASP.NET Core 11 news, those with immediate practical impact:
- Asynchronous validation with new DataAnnotations APIs, in Minimal APIs and Blazor forms. Checks like "email address is already used" can now be done in the validation pipeline, not in the handler. What else a public form validation should contain is discussed in the series on form security.
- OpenAPI 3.2 becomes the default version for generated documents, with support for describing payloads in Server-Sent Events streams.
- SignalR refreshes authentication without reconnecting.
- Blazor: the
CacheViewcomponent caches the output of a subtree in static SSR, client validation also works in static SSR, andQuickGridandVirtualizecan scroll to a specific item. - Automatic circuit pause in Interactive Server frees server memory for inactive tabs. This feature must be explicitly enabled, so the upgrade does not change application behavior by itself.
EF Core 11
EF Core 11 is, as usual, less spectacular and more useful than it seems:
- Removes unnecessary joins in several cases with reference navigations and split queries, and better translates
GroupBy. - Translates the new
FullJoinfrom LINQ where the provider supports it. - Complex types and JSON columns now work with TPT and TPC inheritance.
- Approximate vector search and vector indexes for SQL Server are available but still experimental.
EF Core 11 requires .NET 11. If you stay on .NET 10, you stay on EF Core 10.
AI: MCP, Microsoft.Extensions.AI, and Agent Framework
The direction is clear: .NET wants to be a first-class platform for AI agent applications.
- An MCP server template now comes in the SDK:
dotnet new mcpservergenerates a server based on MCP C# SDK 2.0, with a sample tool. It's the shortest path to expose data from a .NET application to agents. - Microsoft.Extensions.AI provides common abstractions (
IChatClient,IEmbeddingGenerator), compatible with dependency injection, caching, and OpenTelemetry, so you can switch the model provider without rewriting the application. - Microsoft Agent Framework builds agents that call tools and maintain conversation state, plus workflows that coordinate you.
SDK and tooling
- The CLI starts faster: it has a Native AOT compiled host, and the MSBuild server stays running between commands.
- File-based apps, introduced in .NET 10, can now include multiple source files with
#:include. - NuGet has a minimum package age setting: you can delay adopting recently published versions. It's a simple protection against supply chain attacks but does not replace vulnerability scanning.
dotnet watchintegrates with Aspire and recovers after crashes.- dotnetup, a user-level SDK and runtime manager, is in public preview.
- .NET Skills offers .NET-specific instructions for code agents, and the .NET Upgrade canvas visually shows the progress of an upgrade session done with GitHub Copilot.
.NET MAUI and desktop
.NET MAUI runs by default on CoreCLR on all platforms, at the end of a transition from Mono announced long ago. On Apple platforms that do not allow JIT, it uses precompiled code and the interpreter. There is also incremental Hot Reload for XAML (in preview) and implicit namespace declarations in XAML. The Microsoft.Maui.Controls.Compatibility package is no longer shipped, so applications still depending on it must be migrated. If you choose between MAUI and alternatives, we compared options in the article about mobile applications in 2026.
On Windows, WinUI 3 remains the recommendation for new desktop applications. Windows Forms gets optional modern visual styles, and WPF mainly receives stability fixes.
What can break the upgrade
The full list is in the breaking changes page for .NET 11. Those worth checking before any deploy:
- Higher minimum processor requirements. On x64, the minimum rises to x86-64-v2 (SSE4.2, POPCNT, and others). On older hardware, the application will not start at all and shows a message about missing instructions. It's unlikely to matter on modern servers but check old virtual machines, industrial hardware, and emulators. Full details are in the documentation.
- Corrected numeric rounding. Floating-point to
decimalandBigIntegerconversions are now correctly rounded, andMath.RoundandMathF.Roundreturn correctly rounded results. Correct is good, but different can mean a different value on an invoice, report, or a test with expected values. For billing and accounting applications, this is the first point to test. - Floating-point to small integer type conversions (
byte,short) are now saturated: a too-large value becomes the maximum value of the type, not a platform-dependent result. - NuGet restore no longer searches the global packages folder for a higher version than requested. Builds that worked by luck may fail.
- Named mutexes have user scope by default on Unix.
- .NET MAUI: removal of the compatibility package, mentioned above.
Is the upgrade worth it? It depends on where you start
| Starting from | Recommendation | Why |
|---|---|---|
| .NET 8 or .NET 9 | Upgrade now, to .NET 10 or 11 | No support from November 10, 2026, so no security patches |
| .NET 10 | No rush | Same support horizon; upgrade to 11 only for a feature you need |
| New project | .NET 11 | Newest language and runtime, with the same support horizon as .NET 10 |
| Public library (NuGet) | Multi-targeting | Target net10.0 and net11.0, optionally also netstandard2.0 |
If you are on .NET 8 or 9: 10 or 11?
Both take you until November 2028, so the decision depends on the compromise between maturity and features:
- .NET 10 if you depend on many third-party libraries, have a large application with modest test coverage, or simply want the smallest change that brings you back into support. Upgrading from .NET 8 is already a jump of two major versions.
- .NET 11 if your dependencies already support it and you want union types, EF Core 11, or improvements in ASP.NET Core. You make one upgrade instead of two.
Whatever the choice, don't delay: an internet-exposed application running on an unsupported runtime is a security problem, not a style issue.
If you are on .NET 10
You have no support pressure, so the decision is strictly about benefit. The next LTS version, .NET 12, should appear in November 2027. If you want to make one upgrade per year, going from 10 directly to 12 is a perfectly reasonable path. However, if union types would visibly simplify your domain model, or you need something specific from EF Core 11, upgrade to .NET 11 without worrying about support duration.
Upgrade steps
- Update the SDK in
global.json(if you fix it there, as in the example below) and install it on development machines and build agents. - Change
TargetFrameworktonet11.0(keeping platform suffixes, e.g.,net11.0-android), then update packages and workloads. Simply installing the SDK does not change the application target. - Go through the list of breaking changes, starting with numeric rounding and processor requirements.
- Test under representative load and check publishing mode, container images, native dependencies, and hosting environment.
{
"sdk": {
"version": "11.0.100",
"rollForward": "latestFeature"
}
}
You get the exact SDK version from the .NET 11 download page.
Conclusion
For most of us, .NET 11 has two stories. The first is C# 15: union types and closed hierarchies change how we model results and states, and if you have ever written switch statements with a default branch "just in case," you will feel the difference. The second is the schedule: with .NET 8 and 9 out of support and .NET 10 and 11 supported until the same date, choosing the version has become simpler than ever.
If you are on .NET 8 or 9, upgrade now, to either one. If you are on .NET 10, look at what .NET 11 concretely brings you and decide without pressure. And if you start a new project, there is no reason not to start directly with .NET 11.
P.S. This month C# dropped again in the TIOBE ranking. The .NET 11 launch is not yet visible in the numbers. We will return with analysis in December.
Sources and official documentation
- Announcing .NET 11 (.NET blog)
- .NET and .NET Core Support Policy
- .NET 8 and .NET 9 end of support
- What's new in C# 15
- C# 15 union types (.NET blog)
- What's new in the .NET 11 runtime
- What's new in .NET 11 libraries
- What's new in the .NET 11 SDK
- What's new in ASP.NET Core 11
- What's new in EF Core 11
- What's new in .NET MAUI for .NET 11
- Breaking changes in .NET 11