Skip to content
CW
Navigation

Language

Navigation

Back to Blog
10 Nov 2026 17 min read 305 Views
.NET 11 Is Here: Every Big Change That Matters

.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 labeled break/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 unsafe context to the operations that actually access unmanaged memory, rather than to the mere existence of pointer types. With LangVersion preview, declaring pointers, using &, fixed, converting stackalloc to a pointer and sizeof no longer require unsafe. Dereferencing (*p, p->x, p[i]) still does. There is also the unsafe(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>.Default and EqualityComparer<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-v1 to x86-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 --help and 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 -e passes environment variables from the command line.
  • dotnet watch integrates with Aspire, recovers from crashes, and lets you pick the device in mobile projects.
  • dotnet test gained timeouts, a failure limit, per-module results and support for Android, iOS, macOS and Mac Catalyst test projects, with androidtest, iostest, macostest and maccatalysttest templates. 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 (wslc on Windows and container on macOS), reproducible digests with SOURCE_DATE_EPOCH, and fewer redundant layer uploads.
  • NuGet: the --min-publish-age-hours option 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, and ProcessExitStatus to 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, ReadOnlySequenceStream and StringStream.
  • 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, Decimal64 and Decimal128, plus a generic Complex<T>.
  • Async validation in DataAnnotations (AsyncValidationAttribute, IAsyncValidatableObject) and in Options (IAsyncStartupValidator).
  • Networking and DNS: a DnsResolver class with typed DNS records, HTTP request-body compression, and QuicStream.Priority for 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 MemoryCache and rule-based Activity tracing configuration.
  • Nice little things: EqualityComparer<T>.Create from a key selector, generic Random.NextInteger<T>, FORCE_COLOR support in Console, and BitArray constructors 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 IChatClient and IEmbeddingGenerator, 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 GroupBy better and translates the new LINQ FullJoin on 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.Json is used: JSON bodies in Minimal APIs and MVC, with OpenAPI describing the alternatives with anyOf. 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 await a 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.
  • CacheView for 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 an OnRowClick parameter. Heads up: if you style button.col-title, you now need to target a.col-title as well.
  • Virtualize no longer assumes equal item heights, uses native CSS scroll anchoring where available, and its default OverscanCount changed from 3 to 15. You can also jump straight to an item with InitialItemIndex and ScrollToItemAsync.
  • Forms: client-side validation in static SSR, async validation in any render mode, and a new DisplayName component 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.RequestCircuitPauseAsync so the server can ask clients to pause gracefully during a deployment.
  • Small but useful: EnvironmentView with Include and Exclude, NavigationManager.GetUriWithFragment, IHostedService support in Blazor WebAssembly, the Microsoft.AspNetCore.Components.Gateway dev server for standalone WebAssembly, and WithBrowserOptions.

🧪 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 Passkeys class in Microsoft.Maui.Authentication with IsSupported, CreateAsync and AssertAsync, using standard WebAuthn JSON. Your server still owns the challenge and validation.
  • Permissions.PostNotifications is now implemented on iOS.
  • Window.StatusBarTheme to control the status bar style.
  • Themed dark splash screens (DarkColor, DarkTintColor) and MediaPickerOptions.SaveToGallery, which defaults to false.

Breaking changes: read before upgrading

This part costs you an afternoon if you skip it:

  • The Microsoft.Maui.Controls.Compatibility package 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, NavigationPage and TabbedPage use new handlers, and Appearing now fires before the push, so move work that depends on the visible page to NavigatedTo.
  • Windows uses the new CollectionView2 handler by default. You can go back temporarily with UseWindowsCollectionView2Handler set to false.
  • The Color class is now sealed.

🪟 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:

  1. Update global.json if you pin the SDK, and install the same SDK on development machines and build agents.
  2. Move your target frameworks to net11.0, keeping platform suffixes, and update packages and workloads.
  3. Read the .NET 11 breaking changes list, including the new minimum CPU requirements.
  4. Run your tests and measure the app under a representative workload, validating your publishing mode, container base images and native dependencies.
  5. 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)

Cezar Wagenheimer

Written by

Cezar Wagenheimer

Share this article

Comments

Have a question, or found an issue with the code? Drop a comment below — I read and reply to every one.

Loading comments…

Leave a comment

Keep exploring

Deploy // Reconectando
Reconectando ao Servidor

Uma nova versão do ecossistema está sendo aplicada. A conexão será restabelecida automaticamente em instantes.