.NET 11 and C# 15 are out today.
Here's everything that changes for you, in 2 minutes ๐
๐# ๐ญ๐ฑ
โข Union Types: a value is one of a fixed set of types, and the compiler checks every case
โข Closed hierarchies: a closed class can only be extended inside its assembly
โข Collection expression arguments: [with(capacity: 10), .. items]
โข Extension indexers
โข Labeled break and continue for nested loops
๐ฅ๐๐ป๐๐ถ๐บ๐ฒ
โข Runtime Async: no more compiler-made state machines, faster async code, 5 stack frames instead of 13
โข Smarter JIT: fewer bounds checks, better devirtualization
โข File-based apps across many files with #:include
๐๐ถ๐ฏ๐ฟ๐ฎ๐ฟ๐ถ๐ฒ๐
โข LeftJoin, RightJoin and the new FullJoin return tuples
โข Process.RunAndCaptureTextAsync: run a process and read its output in one call
โข JSON Lines output when streaming IAsyncEnumerable
๐๐ฆ๐ฃ .๐ก๐๐ง ๐๐ผ๐ฟ๐ฒ
โข Async validation in Minimal APIs: check the database inside a validation attribute
โข Built-in validation localization
โข Native OpenTelemetry tracing without an extra package
โข OpenAPI 3.2 by default, with real schemas for Server-Sent Events
โข MCP server template ships with the SDK
๐๐ ๐๐ผ๐ฟ๐ฒ ๐ญ๐ญ
โข Better SQL for Include: 29% faster split queries in EF team tests
โข FullJoin translates to SQL FULL JOIN
โข MaxBy and MinBy translation
โข Complex types with TPT/TPC, keys and indexes
โข Vector search and hybrid search, vector columns no longer loaded by default
โข Migrations: --add, a dotnet-ef.json config, --context "*"
๐๐ฟ๐ฒ๐ฎ๐ธ๐ถ๐ป๐ด ๐ฐ๐ต๐ฎ๐ป๐ด๐ฒ๐ ๐๐ผ ๐ฐ๐ต๐ฒ๐ฐ๐ธ
โข New minimum CPU: x86-64-v2
โข A failing BackgroundService now makes IHost.RunAsync throw
โข Corrupted ZIP and TAR files now throw InvalidDataException
โข EF Core uses SQL Server compatibility level 160 by default
โข The EF Core Cosmos DB provider moves to System.Text.Json
๐ ๐ฆ๐ต๐ผ๐๐น๐ฑ ๐๐ผ๐ ๐๐ฝ๐ด๐ฟ๐ฎ๐ฑ๐ฒ?
.NET 11 is an STS release with 24 months of support (until November 2028).
On .NET 10 LTS? There is no rush for production apps.
But Union Types and Runtime Async are worth the upgrade.
I'm moving my projects in November and December.
๐ I explained every feature with code examples here (and the breaking changes you need to know):
โณ https://t.co/4tJS9vF9jz
Join 28,000 readers in my free newsletter, I will write more in depth about .NET 11 and C# 15 features in November. And how to use new features with your AI agent.
Will you upgrade to .NET 11 this year?
@DanielGlejzner Thatโs the other big part is they are internal/just never updated, so you wonโt even see them on the npm download stat at all PLUS angular.js was from an era where we werenโt using npm to get angular.js , dependencies were manually managed.
@NFLosophy Voted against it as well, Iโll get the benefits, but yea same conclusions as you, plus i expect home prices to rise as the market will stabilize with that gone now. Will be happy to be wrong, hope it works out.
@jajones116@BerryLemonPi Well the problem is how easy can the definition of homestead change, if corporations/LLCโs start being included in the future by some loophole. Corporations are people is the law of the land, so you can imagine something shady occuring down the line.
@BQRMagic Youโre gonna get a lot of low IQ responses. I hope for the best, my main concern is the eventual loop holes that will be down the line for corporates.