Microsoft's ASP.NET Core in .NET 11 adds C# 15 union type binding for JSON bodies, async Minimal API validators, OpenAPI 3.2 by default and a long Blazor list including experimental AI components. It is an STS release with two years of support.
Key points
- Union types bind only in JSON bodies; route, query, header and form values cannot use them.
- Minimal API validation now awaits async validators, and the new [ShortCircuit] attribute skips the rest of the middleware pipeline.
- OpenAPI documents default to 3.2 via Microsoft.OpenApi 3.3.1, which the release notes flag as a breaking change.
- SignalR adds per-hub authentication refresh, so long-lived connections survive token expiry; the .NET client refreshes automatically by default.
- Blazor gains a CacheView component, default client-side validation for static SSR forms and a CSS breaking change in QuickGrid, where headers and pager render as links.
- Kestrel's HTTP/1.1 parser stops throwing on malformed requests, reported to raise throughput 20-40% under heavy invalid traffic; Zstandard compression is on by default.
This summary was generated by the agent from the original post on InfoQ .NET. The full text and all rights belong to its author and publisher. Go to original