Today’s release of .NET 6 is the result of just over a year’s worth of effort by the .NET Team and community. C# 10 and F# 6 deliver language improvements that make our web app engineers' code simpler and better.
There are massive gains in performance, which we’ve seen dropping the cost of hosting cloud services.
.NET 6 is the first release that natively supports Apple Silicon (Arm64) and has also been improved for Windows Arm64.
Microsoft have built a new dynamic profile-guided optimization (PGO) system that delivers deep optimizations that are only possible at runtime.
Cloud diagnostics have been improved with dotnet monitor and OpenTelemetry. WebAssembly support is more capable and performant. New APIs have been added, for HTTP/3, processing JSON, mathematics, and directly manipulating memory.
.NET 6 will be supported for three years. The New Media Aid app development teams have already started upgrading applications to .NET 6!
Some of the great new features and improvements in ASP.NET Core for .NET 6 are shown below:
- Hot reload: Apply changes to Razor, C#, and CSS source files into your running app during development without the need to rebuild and restart the app.
- Async streaming: Asynchronously stream data from the server without any need for buffering.
- IAsyncDisposable: Support for
IAsyncDisposable
on controllers, page models, and view components.
- Null-state analysis: All ASP.NET Core templates now have C# null-state analysis enabled by default.
- Blazor improvements:
- .NET WebAssembly build tools: Ahead-of-time (AOT) compilation for Blazor WebAssembly apps, as well as support for runtime relinking and native dependencies.
- Single-page apps: Built-in support for Angular 12 and React 17 based on a flexible template pattern that can be used with other popular frontend JavaScript frameworks.
- Socket control: More control over socket creation and handling.
- Strongly-typed headers: Accessing HTTP headers in a strongly-typed way.
- HTTP & W3C logging: Log HTTP traffic, and log using the W3C Extended Log File Format.
- HTTP/3 (Preview): Preview of server support for HTTP/3 based on the new QUIC transport.