.NET 11 release notes and what's new

Microsoft has officially released .NET 11, a Standard Term Support (STS) version that focuses on developer productivity, AI-driven application development, and runtime performance. The release includes significant updates to C# 15, ASP.NET Core, and .NET MAUI, alongside new tooling to streamline the developer experience.

Key Language and Runtime Updates

C# 15 and F# 11

C# 15 introduces union types and closed hierarchies, providing developers with native mechanisms to define exhaustive state models and handle them with compiler-checked patterns. This reduces the reliance on object or unrelated base classes for state management. F# 11 focuses on compiler memory efficiency and introduces new ways to bound concurrent asynchronous operations.

Runtime Async (Preview)

.NET 11 introduces a preview of "Runtime Async," which moves asynchronous suspension and resumption logic into the runtime rather than relying on compiler-generated state machines. This change aims to provide cleaner live call stacks for debuggers and profilers. While the runtime libraries are built with this feature, developers must explicitly opt-in to use it in their own application code.

Performance Improvements

Runtime performance remains a core pillar of the release. The JIT compiler has been updated to remove redundant bounds checks and improve devirtualization. Additionally, Native AOT interface dispatch has been optimized to reduce code size and improve throughput for interface-heavy applications. A comprehensive breakdown of these optimizations is available in the official performance documentation.

AI and Agentic Development

Microsoft is positioning .NET 11 as a primary framework for building agentic applications. Key components include:

  • Microsoft.Extensions.AI (MEAI): Provides standardized abstractions like IChatClient and IEmbeddingGenerator for integrating AI models into existing .NET patterns.
  • Microsoft Agent Framework (MAF): A framework for coordinating agents, maintaining conversation state, and managing workflows.
  • MCP Support: The SDK now includes an official Model Context Protocol (MCP) server template, allowing developers to easily expose local tools and services to AI agents.
  • Blazor AI Components: Experimental components for building interactive, agent-aware web UIs.

Tooling and SDK Enhancements

Development workflows have been improved through several infrastructure changes:

  • Native AOT CLI Host: The .NET CLI now uses a Native AOT host by default, significantly reducing startup overhead for common commands.
  • MSBuild Server: Stays active between CLI invocations to reduce repeated initialization work.
  • dotnetup: A new toolchain manager, currently in public preview, simplifies the installation and management of multiple .NET SDK and runtime versions.
  • Testing Improvements: dotnet test now includes run-level timeouts, failure limits, and better support for mobile device selection.

Web and Cross-Platform Development

ASP.NET Core 11 adds native support for C# union types in JSON serialization and introduces asynchronous validation for Minimal APIs, allowing for non-blocking I/O during request validation. Blazor now supports automatic circuit pausing for inactive browser tabs to conserve server memory.

.NET MAUI has transitioned to using CoreCLR as its default runtime, aligning it more closely with the broader .NET ecosystem. The release also introduces XAML Incremental Hot Reload (preview) to improve the UI development loop.

Community Insights

The .NET community has responded positively to the release, particularly regarding the focus on performance and the maturation of the toolchain. Discussions on platforms like Hacker News highlight the following perspectives:

  • Tooling Stability: Developers appreciate the consistency of the .NET ecosystem compared to more fragmented environments, noting that the strong static analysis and type system make it highly effective for backend services.
  • IDE Experience: While Visual Studio remains the standard for many, users on Linux and macOS continue to rely on JetBrains Rider as a robust alternative, noting that the VS Code experience for .NET is still evolving.
  • Support Policy: Some users have noted that the STS lifecycle requires a more frequent upgrade cadence compared to LTS releases, emphasizing the importance of planning for the two-year support window.
  • AI Integration: The inclusion of first-party AI libraries is seen as a significant move to keep .NET competitive in the current development landscape, with many developers eager to leverage the new agentic frameworks.

Sources