Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes new features in .NET 11. It was last updated for Preview 6.
.NET 11 is currently in preview. The final release is expected in November 2026. You can download .NET 11 here.
.NET runtime
The .NET 11 runtime includes:
- Updated minimum hardware requirements for x86/x64 and Arm64 architectures, requiring more modern instruction sets to improve performance and reduce maintenance complexity.
- Runtime-native async (Runtime Async), which produces cleaner stack traces and lower overhead. Runtime Async no longer requires
<EnablePreviewFeatures>true</EnablePreviewFeatures>for projects that targetnet11.0. The runtime libraries themselves are compiled withruntime-async=on. - Runtime Async performance improvements, including JIT compilation of a dedicated runtime-async version of synchronous task-returning methods, async continuations that opt out of
ExecutionContextcapture when no ambient state is in use, and tail-merged suspension points that reduce generated code size. - JIT improvements for bounds check elimination, redundant checked context removal, switch expression folding, constant-folding
SequenceEqual, and redundant branch elimination. There are also new Arm SVE2 intrinsics, improved hardware-intrinsic cost modeling, and a fasterMath.BigMulon x64 that emits a singleMULinstruction. - In-process crash report logging on mobile platforms that captures the managed stack trace and runtime state before the process exits.
- NativeAOT faster interface dispatch using a shared dispatch helper, reducing binary size at call sites and improving throughput for interface-heavy workloads.
- SIMD lane construction and composition APIs (
CreateGeometricSequence,Zip,Unzip, and theConcatfamily) acrossVector128<T>,Vector256<T>,Vector512<T>,Vector64<T>, andVector<T>.
For more information, see What's new in the .NET 11 runtime.
.NET libraries
The .NET 11 libraries include new APIs for:
- Process expansion with run-and-capture helpers, fire-and-forget launches,
SafeProcessHandlelifecycle methods, tighter handle control, and newProcessStartInfo.StartSuspendedfor suspended starts andProcess.TryGetProcessByIdfor safe process lookup. - Compression, including improved Base64 APIs, new methods for ZIP archive entries, Zstandard compression in System.IO.Compression, and CRC32 validation when reading ZIP entries.
- System.Text.Json improvements, including generic type info retrieval, JsonNamingPolicy.PascalCase, per-member naming policy overrides, type-level ignore conditions, F# discriminated union support, Utf8JsonWriter.Reset with options,
SerializeAsyncEnumerableoverloads forPipeWritertargets and top-level values (NDJSON) output, and serialization of C# union types. - Built-in OpenTelemetry metrics for MemoryCache.
- Discriminated-union scaffolding (
UnionAttributeandIUnion) in System.Runtime.CompilerServices. - Tar archive format selection and GNU sparse format 1.0 support.
Consolesupport for theFORCE_COLORenvironment variable.- TLS handshake hardening and certificate-validation alerts on Linux.
- HTTP/2 automatic downgrade for Windows authentication.
- LINQ join improvements, including
FullJoinand tuple-returningJoinandGroupJoinoverloads, across Enumerable, Queryable, and AsyncEnumerable. - A new X25519DiffieHellman class for X25519 key exchange.
- Generic overloads on Random —
NextInteger<T>andNextBinaryFloat<T>— that work with any numeric generic type. - EqualityComparer<T>.Create factory method that creates a comparer from a key selector.
- QuicStream.Priority for HTTP/3 stream prioritization.
- Video MIME type constants in MediaTypeNames.Video.
- Four new
Streamtypes (ReadOnlyMemoryStream,WritableMemoryStream,ReadOnlySequenceStream,StringStream) that wrap in-memory data without copying. - Asynchronous validation in
System.ComponentModel.DataAnnotationsviaAsyncValidationAttribute,IAsyncValidatableObject, and newValidator.ValidateObjectAsyncmethods. - Activity tracing configuration using rules in
Microsoft.Extensions.Diagnostics, enabling declarative control ofActivitytracing without wiring upActivityListenerinstances manually. - Cross-lane vector operations including
CreateGeometricSequence,Zip,Unzip, and theConcatfamily onVector128<T>,Vector256<T>,Vector512<T>,Vector64<T>, andVector<T>.
For more information, see What's new in the .NET 11 libraries.
.NET SDK
The .NET 11 SDK includes:
- Smaller SDK installers on Linux and macOS through assembly deduplication, with additional savings by skipping crossgen for
DotnetTools-only assemblies. - Improved CA1873 code analyzer with reduced noise and clearer diagnostic messages.
- Support for creating and editing solution filters (
.slnf) from thedotnet slnCLI. - File-based app support for
#:includeto split apps across multiple files, and#:include ./libs/MyLib.dllto include compiled DLL references directly. - A new
dotnet run -eoption to pass environment variables from the command line. dotnet watchimprovements, including Aspire app-host integration, automatic crash recovery, and device selection for MAUI and mobile projects.- OpenTelemetry replaces Application Insights for CLI telemetry.
- NativeAOT CLI entry point that serves the full command surface—including
--helpfor all built-in commands and tool/external-command launches—out-of-process from the AOT path, skipping managed CLI startup. dotnet testimprovements, including--no-dependencies,DOTNET_TEST_RUNNERenvironment variable,--use-current-runtime,--test-modulesexclusion patterns, per-assembly test counts, and live display of in-flight tests.- Built-in test templates support xUnit v3 (defaulting to Microsoft.Testing.Platform) and NUnit with an opt-in
--test-runneroption. - Multi-architecture container image builds with Podman using the SDK's container publishing support.
- TypeScript compilation outputs from Razor Class Libraries now integrate correctly with the Static Web Assets pipeline.
- The
dotnetCLI no longer suppresses the MSBuild build server whenDOTNET_CLI_USE_MSBUILD_SERVERis unset, and the OTLP telemetry exporter activates on any standardOTEL_EXPORTER_OTLP_*environment variable.
For more information, see What's new in the SDK for .NET 11.
ASP.NET Core
For information about what's new in ASP.NET Core, see What's new in ASP.NET Core for .NET 11.
C# 15
C# 15 includes these features:
For information about new C# features, see What's new in C# 15.
EF Core
See What's new in EF Core for .NET 11.
Extensions libraries
See dotnet/extensions release notes.
Windows Forms
See What's new in Windows Forms for .NET 11.
WPF
See What's new in WPF in .NET 11.