.NET 11 New Features for Web Developers Print

  • net11, dotnet 11, c# 15, asp.net core 11, ef core 11, blazor
  • 0

Overview

.NET 11 was released on November 10, 2026. It is a Standard Term Support (STS) release, supported until November 14, 2028. This article highlights the changes most relevant to web application development. On our hosting plans, .NET 11 apps are published as self-contained (see Deploying .NET 11 Applications via Plesk).

C# 15

C# 15 is the default language version for projects that target net11.0.

  • Union types: describe a value that can be one of a fixed set of types, and handle each case with compiler-checked patterns
  • Closed hierarchies: a class hierarchy the compiler knows is complete, so pattern matching can check that every case is handled
  • Collection expression arguments: pass arguments (such as a capacity or comparer) to the collection a collection expression creates
  • Extension indexers: indexers can now be declared as extension members
  • Labeled break and continue: leave or continue an outer loop by name
  • Memory safety: still a preview feature; it needs <LangVersion>preview</LangVersion>

ASP.NET Core 11 Highlights

Minimal APIs and Validation

  • Asynchronous validation: validation rules can run I/O, such as a database lookup, without blocking threads
  • Union types in request bodies: C# union types can be bound from JSON

OpenAPI 3.2

  • Generated OpenAPI documents now use OpenAPI 3.2 by default
  • If a client or tool only reads an earlier version, you can select an earlier OpenAPI version in your OpenAPI options

Blazor

  • TempData for static server-side rendering
  • CacheView component
  • BasePath and DisplayName components
  • RelativeToCurrentUri option for NavigateTo and NavLink
  • Circuit.RequestCircuitPauseAsync: the server can pause a Blazor Server circuit, for example before a planned restart or deployment
  • The Virtualize component's default OverscanCount changes from 3 to 15
  • The Blazor AI components package is experimental and stays prerelease throughout .NET 11

SignalR

  • Authentication refresh: a connection can refresh its authentication without reconnecting

Observability

  • OpenTelemetry tracing is built into ASP.NET Core's HTTP server activity

Runtime

  • Runtime Async: the runtime itself can handle async methods instead of compiler-generated state machines. Microsoft's .NET 11 announcement describes it as still in preview.
  • Targeted performance work in the JIT, ReadyToRun and libraries. As Microsoft says, measure the effect on your own application.

Libraries

  • Zstandard compression in System.IO.Compression
  • Process APIs to run a process and capture its output in one call
  • System.Text.Json: JSON Lines output and support for C# union types
  • LINQ: a FullJoin operator
  • New stream adapters such as ReadOnlyMemoryStream and StringStream

Entity Framework Core 11

  • Requires .NET 11: EF Core 11 needs the .NET 11 SDK to build and the .NET 11 runtime to run
  • SQL Server compatibility level: UseSqlServer now assumes compatibility level 160 (SQL Server 2022) by default. Set UseCompatibilityLevel(170) to use SQL Server 2025 features
  • JSON: EF.Functions.JsonPathExists() and EF.Functions.JsonContains(); LINQ Contains on JSON uses JSON_CONTAINS at compatibility level 170
  • Full-text search: map full-text catalogs and indexes (HasFullTextCatalog, HasFullTextIndex) and query with FreeTextTable and ContainsTable
  • Vector search: VectorSearch() and vector indexes; Microsoft notes these are still experimental features in SQL Server

SDK and Tooling

  • MCP server template: dotnet new mcpserver -o MyMcpServer
  • dotnetup (public preview): installs and updates SDKs and runtimes in your user account

Moving from .NET 10

  1. Change the target framework to net11.0 in your .csproj
  2. Update your NuGet packages to their .NET 11 versions
  3. Review Microsoft's list of breaking changes in .NET 11
  4. Test locally, then publish self-contained for win-x64

Project File Update

<TargetFramework>net11.0</TargetFramework>

Resources

Looking for a host for your .NET 11 app? Our .NET 11 hosting plans run on Windows Server 2022 with IIS 10, Plesk and SQL Server 2025 and 2022. Compare plans.

Was this answer helpful?

« Back