.NET 11 Preview 5 Brings JSON Lines, LINQ Joins, and Faster GC to Your Projects
.NET 11 Preview 5 lands with practical performance tweaks and a handful of language features that actually matter for daily development. This preview rounds out several runtime improvements and adds a few library updates that should save developers from writing boilerplate code. If you are already testing earlier previews, the shift toward faster garbage collection and cleaner query translation will feel noticeable.
Libraries and Core API Updates
JSON Lines serialization support finally gives a straightforward way to stream large datasets without wrestling with custom formatters. LINQ gets full outer joins, which means you will stop writing separate left and right join queries just to match rows that exist in only one collection. The cryptography library picks up "X25519" key agreement, a standard that modern secure communications rely on. Random now exposes generic numeric APIs, which stops casting integers or longs just to get predictable ranges. This cuts out the repetitive glue code that usually clutters service layers, which is a relief since nobody enjoys writing mapping layers by hand.
Runtime Speed and Garbage Collection Tweaks
Runtime-async suspension runs faster now, which directly impacts how smoothly background threads yield control during high load. The JIT compiler picks up optimizations that reduce instruction bloat in hot paths. Apps will stutter after months of steady traffic simply because the heap fragments beyond a comfortable point. This preview addresses that friction by keeping object lifecycles tighter through GC trimming and compaction improvements. The net effect is steadier response times without throwing out the garbage collector entirely.
.NET 11 Preview 5 SDK and Language Updates
The SDK now runs vulnerability and end-of-life checks during the build process, which stops teams from shipping known dead dependencies to production. File-based apps can finally reference other C# files directly, removing the need for awkward project file workarounds. The "dotnet new" command includes an MCP Server template, which helps spin up model context protocol servers without copying boilerplate from GitHub. Console apps bring "System.Net.Http.Json" by default, so you stop fighting with missing package references when building lightweight utilities. Closed class hierarchies seal inheritance chains at the language level, which prevents accidental subclassing in tightly controlled libraries. Union declarations and patterns arrive to handle multiple possible states without resorting to inheritance. Unsafe evolution moves forward with tighter boundaries, keeping low-level memory manipulation from breaking type safety unexpectedly.
.NET 11 Preview 5 is now available! - .NET Blog
Find out about the new features in .NET 11 Preview 5 across the .NET runtime, SDK, libraries, ASP.NET Core, .NET MAUI, C#, Entity Framework Core, and more!
Grab the preview, run it against the existing codebase, and report any breaking changes before the final release locks down the API surface. The team is listening to feedback on union patterns and file-based app workflows, so real test reports will shape the next iteration. Keep the test suites ready and watch the runtime logs for GC behavior shifts.
