.NET 11 Is Here: Every Big Change That Matters
.NET 11 is out! A full tour: C# 15 unions, Runtime Async, a faster CLI, EF Core 11, AI and MCP, MAUI on CoreCLR, Blazor and Windows.
🎉 It's .NET 11 day!
Today, November 10, 2026, Microsoft announced .NET 11 at .NET Conf (running November 10 to 13). It is also the day .NET 8 and .NET 9 reach end of support. If you still have an app running on either one, the clock just started ticking.
A few support facts before we start:
- .NET 11 is a Standard Term Support (STS) release with two years of support. STS and LTS share the same quality and servicing policies; the only difference is duration.
- .NET 10 remains the supported LTS.
- .NET MAUI follows its own support policy, separate from the runtime lifecycle.
- The release is the work of over 7,000 contributors, and NuGet now has more than 589,000 packages and 1.1 trillion downloads.
⚡ The 30-second summary
If you only have half a minute, read this:
- C# 15 becomes the default for
net11.0: union types, closed hierarchies, collection expression arguments, extension indexers and labeledbreak/continue. - Runtime Async (preview) removes compiler state machines and gives much cleaner call stacks.
- The dotnet CLI got snappier: a Native AOT host and an always-warm MSBuild server, both on by default.
- New libraries: Zstandard, a reworked Process API, FullJoin in LINQ, zero-copy in-memory streams, IEEE 754 decimal types.
- AI as a first-class citizen: an MCP server template in the SDK, Microsoft.Extensions.AI, the Agent Framework and AI components in Blazor.
- EF Core 11 with leaner SQL and experimental vector search on SQL Server.
- ASP.NET Core 11 and Blazor:
CacheView, async validation, OpenAPI 3.2 by default, smarter circuits. - .NET MAUI 11 adopts CoreCLR as the default runtime and brings incremental XAML Hot Reload.
- Windows: WinForms with opt-in modern visual styles, and a reliability-focused WPF.
And one warning worth gold: the minimum hardware requirement went up. Details below, because it can catch you off guard.
| Area | Headline |
|---|---|
| Language | C# 15: unions, closed hierarchies, labeled break/continue |
| Runtime | Runtime Async, a smarter JIT, crash reports on Linux and macOS |
| SDK | Native AOT CLI, MSBuild server, dotnet test for mobile |
| Libraries | Zstandard, Process API, FullJoin, JSON with unions |
| AI | MCP template, MEAI, Agent Framework, AG-UI |
| Data | EF Core 11, SQL Server vectors (experimental) |
| Web | CacheView, async validation, OpenAPI 3.2 |
| Mobile | MAUI on CoreCLR, incremental XAML Hot Reload |
| Desktop | Modernized WinForms, a more reliable WPF |
🧠 C# 15: the language got superpowers
C# 15 is the default language version for projects targeting .NET 11, and the main features do not require LangVersion preview. The exception is the memory safety work, which is still preview.
Union types
The star of the release. A union represents a value that can be one of several case types. You declare it with the union keyword:
public record class Cat(string Name);
public record class Dog(string Name);
public record class Bird(string Name);
public union Pet(Cat, Dog, Bird);
Case types convert implicitly to the union, and the compiler makes sure the switch is exhaustive:
Pet pet = new Dog("Rex");
string name = pet switch
{
Dog d => d.Name,
Cat c => c.Name,
Bird b => b.Name,
};
No more object or an artificial base class just to return "this or that". The return type now tells the caller exactly which outcomes it has to handle.
Closed hierarchies
When you own the hierarchy, the closed modifier limits direct derivation to the assembly that declares the class. Because the compiler knows every descendant, a switch that covers them all is exhaustive, with no default arm:
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",
};
Rule of thumb: union to combine types that already exist, closed for models where you control the inheritance.
Collection expression arguments
A with(...) element at the start of a collection expression passes arguments to the collection's constructor or factory. Capacity and comparers without giving up the new syntax:
string[] values = ["one", "two", "three"];
List<string> names = [with(capacity: values.Length * 2), .. values];
HashSet<string> set = [with(StringComparer.OrdinalIgnoreCase), "Hello", "HELLO", "hello"];
// set holds a single element: all strings are equal under OrdinalIgnoreCase
Extension indexers
An extension block can now declare indexers too:
public static class SequenceIndexer
{
extension(IEnumerable<int> sequence)
{
public int this[int index] => sequence.ElementAt(index);
}
}
IEnumerable<int> numbers = Enumerable.Range(1, 10);
int third = numbers[2];
Labeled break and continue
Goodbye, boolean flags and goto for escaping nested loops. Name the loop and point at it:
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;
}
}
}
There is even a new style rule, IDE0410, that flags the old patterns a labeled jump can replace.
Two more additions
- Non-virtual static interface members, even on older runtimes that lack default interface implementations. A static helper on an interface (for example
IMeasurement.ToMeters(250)) works without requiring anything from the implementing types. - Memory safety (preview): the start of a multi-release effort to tie the
unsafecontext to the operations that actually access unmanaged memory, rather than to the mere existence of pointer types. WithLangVersionpreview, declaring pointers, using&,fixed, convertingstackallocto a pointer andsizeofno longer requireunsafe. Dereferencing (*p,p->x,p[i]) still does. There is also theunsafe(expression)expression, for places where a block does not fit, such as a field initializer.
And F# 11?
It arrives with lower compiler memory use, fewer allocations in FSharp.Core collection operations, and ways to bound concurrent asynchronous work. Runtime Async support for custom computation expression builders shows up as a preview.
🚀 Runtime and performance: a smarter engine
This is the "invisible" work that makes your app faster without touching a line. Stephen Toub published the giant Performance Improvements in .NET 11 post with benchmarks for hundreds of optimizations (link in the sources). These are the highlights:
Runtime Async
.NET 11 moves async suspension and resumption into the runtime, instead of relying on compiler-generated state machines. The most visible win is the live call stack, the one profilers, debuggers and new StackTrace() see during execution.
In the official documentation's example, a chain of three async methods showed 13 frames full of state-machine infrastructure. With Runtime Async, only 5 frames appear: the real call chain. The debugger also steps across await boundaries without jumping into generated code.
It is still preview. To try it in a net11.0 project:
<PropertyGroup>
<Features>runtime-async=on</Features>
</PropertyGroup>
No EnablePreviewFeatures needed. The runtime libraries themselves are already compiled with Runtime Async, but turning it on for your code is a separate choice: test your dependencies and diagnostics first.
A smarter JIT
The JIT compiler got a long list of optimizations: it eliminates more bounds checks (including from-the-end access like values[^1]), removes redundant checked contexts, devirtualizes generic virtual methods, folds constant switch expressions into simple checks, and resolves comparisons like "Guest" == "Admin" at compile time after inlining. There are also new Arm SVE2 and AVX-VNNI-512 intrinsics, hardware FP16 instructions for Half, and a faster Math.BigMul on x64.
Numbers that grab attention
- ReadyToRun now specializes
Comparer<T>.DefaultandEqualityComparer<T>.Default: up to 20x improvement for collection operations that use the default comparer. - On platforms without a JIT, such as iOS, cached interface dispatch yields up to 200x in interface-heavy code.
- NativeAOT with faster interface dispatch and smaller call-site code.
Guid.NewGuid()on Linux is about 12% faster.- The runtime can now initialize on machines with more than 1024 logical processors.
As always: measure on your workload. Throughput, startup and size depend on what you publish and how.
In-process crash reports
A new mechanism records the managed stack trace, the module list and the runtime state from inside the dying process, before it exits. It started on mobile and now also works on Linux and macOS. To turn it on, use DOTNET_EnableCrashReport=1.
⚠️ The minimum hardware requirement went up
This is today's heads-up. .NET 11 requires more modern instruction sets:
- x86/x64: the floor moved from
x86-64-v1tox86-64-v2(POPCNT, SSE3 through SSE4.2, CX16). That rules out CPUs from roughly 2013 and earlier. - Arm64 on Windows: the baseline now requires the LSE instruction. Linux and Apple stay as they were.
- On older hardware, .NET fails to start with the message "The current CPU is missing one or more of the baseline instruction sets."
Before you bump the target framework of an old server or embedded device, check the processor.
🧰 SDK and CLI: less waiting, more flow
- The Native AOT CLI and the MSBuild server are on by default. Commands like
--helpand version queries run without starting the managed CLI, and MSBuild stays warm between invocations. - Smaller SDK installers on Linux and macOS.
- File-based apps grow with
#:include, to split an app across multiple files. - You can create and edit solution filters (
.slnf) from the CLI. dotnet run -epasses environment variables from the command line.dotnet watchintegrates with Aspire, recovers from crashes, and lets you pick the device in mobile projects.dotnet testgained timeouts, a failure limit, per-module results and support for Android, iOS, macOS and Mac Catalyst test projects, withandroidtest,iostest,macostestandmaccatalysttesttemplates. The built-in templates now support xUnit v3 (on Microsoft.Testing.Platform) and NUnit.- Containers: multi-architecture builds with Podman, a preference for native local runtimes (
wslcon Windows andcontaineron macOS), reproducible digests withSOURCE_DATE_EPOCH, and fewer redundant layer uploads. - NuGet: the
--min-publish-age-hoursoption sets a minimum publication age before a package becomes eligible. It is one more policy layer, not a replacement for vulnerability checks. - CLI telemetry moved from Application Insights to OpenTelemetry.
- The new dotnetup (public preview) installs and updates SDKs and runtimes in your user account, side by side.
📚 Libraries: what used to be a hack is now an API
- Process: methods that run a process and capture its output and exit status, fire-and-forget launches, suspended starts (
StartSuspended), POSIX signals, andProcessExitStatusto understand how the child ended. - Built-in Zstandard in
System.IO.Compression, plus CRC32 validation when reading ZIP entries and new span-based APIs. - Four new streams that wrap in-memory data without copying:
ReadOnlyMemoryStream,WritableMemoryStream,ReadOnlySequenceStreamandStringStream. - System.Text.Json with support for C# and F# unions, JSON Lines (JSONL) output, and more control over polymorphism and source generation. (The F# union support uses reflection, so it does not work with trimming or Native AOT.)
- LINQ
FullJoin, which keeps unmatched elements from both sides. Perfect for reconciling two inventories or two lists. - IEEE 754 decimal types:
Decimal32,Decimal64andDecimal128, plus a genericComplex<T>. - Async validation in DataAnnotations (
AsyncValidationAttribute,IAsyncValidatableObject) and in Options (IAsyncStartupValidator). - Networking and DNS: a
DnsResolverclass with typed DNS records, HTTP request-body compression, andQuicStream.Priorityfor HTTP/3. - Cryptography:
X25519DiffieHellman, unpadded AES Key Wrap, and experimental ML-KEM and HPKE APIs, with an eye on post-quantum. - Observability: built-in OpenTelemetry metrics on
MemoryCacheand rule-basedActivitytracing configuration. - Nice little things:
EqualityComparer<T>.Createfrom a key selector, genericRandom.NextInteger<T>,FORCE_COLORsupport inConsole, andBitArrayconstructors from spans.
🤖 AI in .NET: from plugin to first-class citizen
Microsoft did not hide the bet. .NET 11 brings the tooling to consume AI, expose your functions to agents, and build agents:
- An MCP server in one command: the SDK now ships a template built on the official MCP C# SDK, with a working sample tool:
dotnet new mcpserver -o MyMcpServer
- Microsoft.Extensions.AI (MEAI) with abstractions such as
IChatClientandIEmbeddingGenerator, which compose with dependency injection, caching and OpenTelemetry. - Microsoft Agent Framework (MAF): agents that call tools and keep conversation state, plus workflows that coordinate agents and code. An agent can be exposed through an ASP.NET Core AG-UI endpoint (the hosting integration is still prerelease).
- Tools for coding agents: .NET Skills gives your agent .NET-specific guidance, .NET MAUI DevFlow (experimental) lets the agent inspect the visual tree, take screenshots and interact with the running app, and the .NET Upgrade canvas visualizes the progress of a GitHub Copilot-driven upgrade.
A personal note: this blog has its own MCP server, which my agents and I use to publish and translate posts. Watching dotnet new mcpserver become an official SDK template is, to me, confirmation that this path is here to stay.
🗄️ EF Core 11: leaner SQL
EF Core 11 requires .NET 11 and improves the bridge between your model and the generated SQL:
- Removes unnecessary joins in more reference-navigation and split-query scenarios.
- Translates
GroupBybetter and translates the new LINQFullJoinon relational providers that support it. - Complex types and JSON columns work on entities mapped with table-per-type and table-per-concrete-type inheritance.
- Better migrations tooling and more provider-specific JSON capabilities.
- SQL Server: vector indexes and approximate vector search. Both the SQL Server features and the corresponding EF APIs are experimental.
When upgrading, check your database provider's compatibility and the EF Core 11 breaking changes list.
🌐 ASP.NET Core 11 and Blazor: faster, safer, and a bit agentic
Since Blazor lives inside ASP.NET Core, the platform and framework news arrive together.
On the platform
- C# unions work wherever
System.Text.Jsonis used: JSON bodies in Minimal APIs and MVC, with OpenAPI describing the alternatives withanyOf. This does not apply to route, query, header or form binding. - OpenAPI 3.2 is the default for generated documents. If something in your toolchain does not understand 3.2 yet, you can explicitly pick an earlier version.
- Async validation for Minimal APIs and Blazor forms: you can
awaita database lookup inside the validator. - SignalR refreshes authentication without reconnecting, and Interactive Server components receive the updated identity.
[ShortCircuit]endpoints and Zstandard response compression.
In Blazor
- Automatic anti-forgery: CSRF protection is on by default, so
app.UseAntiforgery()no longer appears in the Blazor Web App template. One fewer line and one fewer thing to forget. CacheViewfor static SSR: it caches the rendered output of a subtree. On a cache hit, the markup is replayed without creating the child components or running their lifecycle methods.
<CacheView VaryByQuery="category" ExpiresAfter="TimeSpan.FromMinutes(5)">
<ProductList Category="@Category" />
</CacheView>
- QuickGrid keeps paging and sorting in the query string (for example
?page=2&sort=Name&direction=asc), renders headers as links, and gained anOnRowClickparameter. Heads up: if you stylebutton.col-title, you now need to targeta.col-titleas well. - Virtualize no longer assumes equal item heights, uses native CSS scroll anchoring where available, and its default
OverscanCountchanged from 3 to 15. You can also jump straight to an item withInitialItemIndexandScrollToItemAsync. - Forms: client-side validation in static SSR, async validation in any render mode, and a new
DisplayNamecomponent that reads labels from[Display]. - TempData and session in static SSR got simple:
[SupplyParameterFromTempData]
public string? Message { get; set; }
With AddSession() and app.UseSession(), session values work the same way using [SupplyParameterFromSession].
- Smarter circuits in Blazor Server: auto-pause on tab inactivity (opt-in, via an extra package) to free memory and the SignalR connection, and
Circuit.RequestCircuitPauseAsyncso the server can ask clients to pause gracefully during a deployment. - Small but useful:
EnvironmentViewwithIncludeandExclude,NavigationManager.GetUriWithFragment,IHostedServicesupport in Blazor WebAssembly, theMicrosoft.AspNetCore.Components.Gatewaydev server for standalone WebAssembly, andWithBrowserOptions.
🧪 Experimental: Blazor AI components
The Microsoft.AspNetCore.Components.AI package brings streaming chat, tool rendering, approval flows and shared UI state. Basic chat works with any IChatClient, and remote agents talk to the UI over AG-UI. It is experimental and prerelease throughout .NET 11: great for understanding the direction and giving feedback, a bad foundation for your product.
📱 .NET MAUI 11: quality first
The documentation describes this release as focused on product quality. Less shiny, more things that stop biting you.
CoreCLR is the new default runtime
The MAUI headline: apps targeting .NET 11 run on CoreCLR instead of Mono, on every platform. On Apple platforms that disallow JIT, precompiled code and the interpreter fill the gap. NativeAOT is a publishing option, but on Android it is still experimental. If you ship to production, plan a full regression pass: a runtime swap shows up in the corners of your app, not in the demo.
The inner loop
XAML Incremental Hot Reload is in preview and enabled by default in Debug builds: it updates live pages and controls, including supported structural edits, without leaving the screen. If it misbehaves in your project, you can turn it off:
<PropertyGroup>
<EnableMauiIncrementalHotReload>false</EnableMauiIncrementalHotReload>
</PropertyGroup>
Implicit XAML namespaces are on, so you no longer repeat the standard declarations at the root of every file. With XAML source generation enabled, resource dictionaries become lazy, with an improvement of up to about 8x in initialization for apps with large dictionaries. And bindings that use RelativeSource with a resolvable AncestorType compile to a trim-safe, AOT-friendly binding:
<Button Command="{Binding Source={RelativeSource AncestorType={x:Type local:PeopleViewModel}},
Path=DeleteEmployeeCommand}" />
Controls and gestures
Finally, a built-in LongPressGestureRecognizer, with no custom behavior:
<Image Source="dotnet_bot.png">
<Image.GestureRecognizers>
<LongPressGestureRecognizer Duration="500"
LongPressed="OnLongPressed" />
</Image.GestureRecognizers>
</Image>
More improvements: BoxView gained a Fill property that accepts any brush (gradients without hacks), TabbedPage gained badges (BadgeText, BadgeColor, BadgeTextColor), and the Map control got a big update: pin clustering, custom icons, MapLongClicked, clickable shapes and a Windows implementation backed by Azure Maps.
Shell routes understand path parameters:
Routing.RegisterRoute("trip/{tripId}", typeof(TripDetailPage));
await Shell.Current.GoToAsync("//routes/trip/SEA-204");
Platform features
- Passkeys: the
Passkeysclass inMicrosoft.Maui.AuthenticationwithIsSupported,CreateAsyncandAssertAsync, using standard WebAuthn JSON. Your server still owns the challenge and validation. Permissions.PostNotificationsis now implemented on iOS.Window.StatusBarThemeto control the status bar style.- Themed dark splash screens (
DarkColor,DarkTintColor) andMediaPickerOptions.SaveToGallery, which defaults tofalse.
Breaking changes: read before upgrading
This part costs you an afternoon if you skip it:
- The
Microsoft.Maui.Controls.Compatibilitypackage is no longer shipped. Anyone who referenced it needs to migrate. - Android's minimum API level goes from 21 to 24 (Android 7.0), and x86 is no longer supported. arm32 stays.
- On iOS and Mac Catalyst,
NavigationPageandTabbedPageuse new handlers, andAppearingnow fires before the push, so move work that depends on the visible page toNavigatedTo. - Windows uses the new
CollectionView2handler by default. You can go back temporarily withUseWindowsCollectionView2Handlerset tofalse. - The
Colorclass is nowsealed.
🪟 Windows: WinUI, WinForms and WPF
- For new apps, WinUI 3 remains the recommended native UI framework, delivered through the Windows App SDK, which also brings modern Windows APIs to existing WPF and WinForms apps.
- Windows Forms gained an opt-in modern visual styles mode, at the application or control level, ways to react to system visual and accessibility settings, to defer showing a form until it is ready, and to suspend painting during bulk updates. In other words: the new look arrives when you want it, not as an automatic redesign.
- WPF focused on reliability: fixes for Fluent backdrops, window manager failures and weak-event cleanup. Self-contained publishing now includes a native dependency needed by apps that load mixed-mode WPF assemblies.
- If you want to bring .NET apps to Windows Arm64, there is a modernization flow with GitHub Copilot.
🧭 Should you upgrade today?
My take: install the SDK today and try your apps in a branch, but do not rush production. Installing the SDK alone does not retarget anything, so you decide when each project moves.
To start playing:
dotnet new console -n HelloDotnet11 -f net11.0
dotnet run --project HelloDotnet11
And the roadmap for an existing app:
- Update
global.jsonif you pin the SDK, and install the same SDK on development machines and build agents. - Move your target frameworks to
net11.0, keeping platform suffixes, and update packages and workloads. - Read the .NET 11 breaking changes list, including the new minimum CPU requirements.
- Run your tests and measure the app under a representative workload, validating your publishing mode, container base images and native dependencies.
- For MAUI, test on real devices: CoreCLR as the default runtime is the change most likely to surprise you. For Blazor, check your CSS if you use QuickGrid, and your Virtualize layouts if they relied on the old overscan.
If you are on .NET 8 or .NET 9, you need to move: support ended today. You can go to .NET 11, or to .NET 10 if the LTS lifecycle suits you better.
If you are already on a .NET 11 release candidate, update to the final SDK, runtime and packages instead of staying on a prerelease build.
I will write a deeper post once I have migrated a real MAUI app to CoreCLR and have numbers to share. If you want me to cover any item on this list in detail, tell me in the comments or reach out through the site's contact page. 🚀
📚 Sources (all external)
- Announcing .NET 11 on the .NET Blog
- What's new in .NET 11 on Microsoft Learn
- What's new in the .NET 11 runtime on Microsoft Learn
- What's new in C# 15 on Microsoft Learn
- What's new in ASP.NET Core 11 on Microsoft Learn
- What's new in .NET MAUI for .NET 11 on Microsoft Learn
- Performance Improvements in .NET 11 on the .NET Blog
Comments
Have a question, or found an issue with the code? Drop a comment below — I read and reply to every one.