.NET 6: Preview 6 focuses on web development

By: MRT Desk

Published on:

.NET 6: Preview 6 focuses on web development

Microsoft has published the sixth preview of .NET 6 and is primarily targeting web development with the preview. Meanwhile, Preview 6 of Visual Studio 2022, which was released at the same time, offers a live preview for WPF applications.

The list of improvements in the web framework ASP.NET Core 6 Preview 6 includes compression for websockets connections, Open API support for the compact HTTP APIs introduced in Preview 4 and accessibility improvements for Blazor as well as interop optimizations between Blazor and JavaScript.

In addition, Blazor components can now have mandatory parameters [EditorRequired] while tag helpers for View Components in ASP.NET Core MVC and Razor Pages are now allowed to have optional parameters that were not allowed before. Microsoft has updated the project template for Angular clients for ASP.NET Core to Angular version 12.

In the Object-Relational Mapper (OR) Entity Framework Core, Preview 6 offers the central class DbContext a new method ConfigureConventions() that developers can override to set global settings for types. Microsoft calls the feature “Pre-Convention Model Configuration”.

Previously, developers had to configure every single use of a type in the model. In addition, the OR mapper now also supports 64-bit integer values ​​for key values ​​automatically generated by the database. The SQLite driver implements the new data types introduced in .NET 6 Preview 4 DateOnly and TimeOnly.

In the .NET SDK, the manufacturer now offers better management for optional workloads with the commands dotnet workload search, dotnet workload uninstall and dotnet workload repair in addition to the existing commands install, list and update. In addition, .NET 6 finally makes the change to the second generation of the Crossgen tool, which in addition to the intermediate language also embeds machine code in the compilation in order to accelerate the start of a .NET application.

In the .NET class library, the LDAP access works with the classes from the namespace System.DirectoryServices.Protocols not only on Windows, but also on Linux and macOS with TLS transport encryption.

Overall, Microsoft manager Richard Lander describes the amount of innovations in .NET 6 Preview 6 in a blog post as “relatively small” and announces major improvements for Preview 7. In particular, the Entity Framework core team has still made some pointsto close the gap that still exists between the classic Entity Framework and the modern Entity Framework Core. The ASP.NET Core team also lists numerous open points in the roadmap.

After Preview 7 in August, two release candidate versions are planned for September and October, before .NET 6 is to be finally released on November 9, 2021.

A new preview version is available parallel to .NET 6 published by Visual Studio 2022. The highlight is the new live preview of WPF applications. The hot reload function now also works outside the debugger (start with CTRL + F5) and for C ++ applications.

XAML Live Preview for WPF Applications in Visual Studio 2022 Preview 2

For web developers, there is finally a separate project template for applications that use JavaScript or TypeScript, but not ASP.NET Core. Microsoft has also integrated the testing of JavaScript and TypeScript into the Text Explorer of Visual Studio.


(rme)

Article Source