L O A D I N G

Blog Details

  • Home
  • .NET 10 Preview 7 Brings XAML Source Generator and WebSocket Enhancements
By: Admin August 21, 2025

.NET 10 Preview 7 Brings XAML Source Generator and WebSocket Enhancements

Microsoft has rolled out the seventh preview of its upcoming .NET 10 framework, introducing several noteworthy improvements aimed at developers. Among the highlights are a brand-new XAML source generator, smarter SQL handling in Entity Framework Core, and a fresh WebSocketStream API.

Release timeline

The build became publicly available on August 12 via dotnet.microsoft.com. If Microsoft keeps its schedule, the final production release of .NET 10 should land in November.

Faster builds with XAML source generation

One of the central updates is for .NET MAUI (Multi-platform App UI), which now benefits from a source generator for XAML files. This feature automatically creates strongly typed code during compilation, eliminating much of the runtime overhead. As a result, projects compile faster and provide more reliable IntelliSense feedback in the IDE. The generated code is decorated with a [Generated] attribute, streamlining debugging and tool integration.

Entity Framework Core improvements

The preview also updates Entity Framework Core 10, which now uses a new default translation strategy for parameterized collections. Instead of generating entirely new SQL statements when values inside a collection change, EF Core now maps each value as its own scalar parameter. This reduces cache misses, prevents redundant SQL generation, and improves overall query performance.

WebSocketStream API simplifies networking

Handling WebSockets has often required verbose, low-level coding for tasks like framing, buffering, and data encoding. To reduce this complexity, Microsoft is introducing WebSocketStream, an abstraction that presents WebSockets through a familiar Stream-based model. This makes it easier to integrate WebSockets into apps, especially those built around streaming data or text-based protocols.

Additional updates in Preview 7

Alongside the headline features, several smaller but important changes are included:

  • Windows processes can now be launched in their own group using ProcessStartInfo.CreateNewProcessGroup.
  • System.Text.Json adds support for PipeReader in JsonSerializer.Deserialize, complementing existing PipeWriter support.
  • ASP.NET Core gains a new option, ExceptionHandlerOptions.SuppressDiagnosticsCallback, allowing developers to control diagnostic outputs in exception handling middleware.
  • Passkey authentication APIs in ASP.NET Core Identity have been streamlined for easier use.

What’s not changing

Preview 7 does not introduce new features for the .NET runtime or programming languages C#, Visual Basic, or F#. The focus remains on tooling and library improvements.

Looking back at earlier previews

  • Preview 6 (July 15): brought JIT compilation improvements.
  • Preview 5 (June 10): introduced C# 14 support and runtime enhancements.
  • Previews 1–4 (February–May): delivered incremental updates leading up to the current release.

Leave Comment