NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedDevelopment & Open Source

Microsoft releases .NET 11 and C# 15 with union types

The open-source platform update brings new language features, development tool optimizations and capabilities for AI applications.

Published: 5 Dec 2026, 04:00 UTC
Geometric elements of different shapes come together inside a transparent container connected to application modules.
Conceptual illustration of union types and a modular software platform.

Microsoft has released .NET 11 alongside C# 15 and updates to ASP.NET Core, Entity Framework Core, .NET MAUI and other components. SDK and Runtime builds are available for Windows, Linux and macOS. The release follows the STS support track and will receive two years of support; Microsoft offers .NET 10 LTS for projects requiring a longer support period.

C# 15 introduces union types, allowing developers to specify several permitted types for a value while the compiler checks that every alternative is handled. An operation's result could, for example, contain either a success response or an error. The new closed modifier restricts direct inheritance from a class to the same assembly, enabling the compiler to check exhaustive handling of subclasses in a switch.

The SDK enables a precompiled dotnet command-line tool and the MSBuild server by default. The server stays running between commands, which should make repeated operations faster. SDK packages for Linux and macOS are smaller after duplicate files were removed. Standard libraries gain Zstandard compression support, while Entity Framework Core 11 adds query optimizations, FullJoin and experimental support for vector indexes and search with SQL Server.

For AI development, .NET 11 includes an MCP server template. Microsoft.Extensions.AI provides common interfaces for connecting models, while Microsoft Agent Framework is designed to build agents that can use tools, retain state and participate in more complex workflows.

Original source: habr.com ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Хабр

TabNews