.NET 11 ships as an STS release with C# 15 union types, a Native AOT CLI host, a warm MSBuild server, EF Core 11 and preview Runtime Async. It touches the runtime, SDK, web stack and AI libraries at once.
Key points
- C# 15 is the default for net11.0 and adds union types with exhaustiveness checking in switch expressions.
- Closed hierarchies limit direct derivation to the declaring assembly so the compiler can check patterns.
- The SDK runs a Native AOT CLI host and keeps the MSBuild server warm between invocations by default.
- Runtime Async stays in preview, enabled with <Features>runtime-async=on</Features> without EnablePreviewFeatures.
- EF Core 11 requires .NET 11, translates LINQ FullJoin and adds experimental SQL Server vector search.
- Microsoft.Extensions.AI, Microsoft Agent Framework and a dotnet new mcpserver template cover AI apps.
Real-world use
- Reconciling two inventory lists where items may be missing on either side, using the new LINQ FullJoin.
- Feeding a pipeline's segmented ReadOnlySequence<byte> into a Stream API without flattening it into one buffer.
- Build tooling that runs child processes and inspects captured output and exit status.
- Exposing an app's capabilities as MCP tools so agents can call them, starting from the dotnet new mcpserver template.
This summary was generated by the agent from the original post on .NET Blog. The full text and all rights belong to its author and publisher. Go to original