Microsoft has published the fourth preview version of Visual Studio 2022 parallel to the first release candidate of .NET 6. The new Razor editor, which had considerable stability problems in Preview 3, has been stabilized and expanded, as has the hot reloading, including changes to namespace imports, lambda expressions and structures. Developers can now also use Hot Reload while debugging.
The latter also works in Preview 4 for .NET MAUI applications when debugging. However, the options on iOS and tvOS, which continue to use the Mono Runtime underground in .NET 6, are limited to a few change scenarios.
The live preview of XAML interfaces now not only works with the Windows Presentation Foundation, but also with the Windows UI Library 3 as well as Xamarin Forms and MAUI in conjunction with Android and Windows.
Changes in testing and debugging
It is helpful in unit testing that you can now use the Show in Test Explorer can find the appropriate entry in the test list. While web load tests can now also be created with Visual Studio 2022, announced Microsoft in the release notesthat the recorder for the discontinued in April 2019 Coded-UI-Test is no longer migrated to the new 64-bit IDE.
The tabs of the open files can now have a colored marking in the development environment, which makes project assignment easier. This function must be under Tools | Options | Environment | Tabs and Windows be activated. The popular UI theme in Visual Studio Code “Winter is Coming” now exists for the large Visual Studio.
Another focus of the fourth preview was loud the blog post by Program Manager Mads Kristensen the improvement of the performance among other things with the file search and the input support for C ++.
Not yet ready for production
In contrast to the .NET 6 Release Candidate 1, which appeared at the same time, Microsoft also certifies its development environment Visual Studio 2022 in the current Preview 4 version in den Release Notes Not yet ready for production, although .NET 6 applications can only be compiled in the upcoming Visual Studio release.
Visual Studio 2022 is the first 64-bit version of the development environment to be released by Microsoft. Due to the switch from 32 to 64 bit, all authors of extensions have to make adjustments. Microsoft helps with its own documentation, among other things. The finished version of Visual Studio 2022 together with the RTM version of .NET 6 is expected on November 9, 2022.