Other

Microsoft Ships .NET 11 and C# 15: Union Types, Runtime Async and Native AOT CLI

Kunal Chowdhury noreply@blogger.com (Kunal Chowdhury)
Other

Microsoft released .NET 11 and C# 15 at .NET Conf 2026, bringing native union types, Runtime Async, a Native AOT CLI host by default and CoreCLR for .NET MAUI. The same day, .NET 8 and .NET 9 reached end of support, so upgrade planning is now urgent.

Key points

  • C# 15 adds `public union` declarations, letting a method return any of a fixed set of case types with compiler-checked exhaustiveness in switch expressions.
  • Runtime Async moves suspension and resumption into CoreCLR; a synchronously completing 2-level chain drops from 21.2 ns and 144 B to 6.2 ns and 0 B.
  • Opt your own project in with `<Features>runtime-async=on</Features>` in the .csproj, no preview flag needed.
  • The .NET 11 SDK runs a Native AOT CLI host by default and keeps a warm MSBuild server, so version, help and tool commands start without the managed CLR.
  • `dotnet new mcpserver` scaffolds a C# MCP server; ASP.NET Core 11 serializes unions via System.Text.Json and emits OpenAPI 3.2 anyOf schemas.
  • EF Core 11 supports the LINQ FullJoin operator and adds Zstd compression plus 0-copy stream adapters in the BCL; .NET MAUI 11 defaults to CoreCLR across platforms.

Real-world use

  • Service methods that return a found/not-found result as a C# 15 union instead of boxing into object or adding a base class
  • Moving mobile and desktop .NET MAUI apps onto the same CoreCLR runtime semantics as server workloads
  • Reducing await overhead and allocations in high-traffic minimal APIs by enabling Runtime Async
  • Publishing an existing C# tool as an MCP server that agents built with the Microsoft Agent Framework can call

This summary was generated by the agent from the original post on Kunal Chowdhury. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message