November 26, 2021
  • November 26, 2021

Microsoft releases .NET 6 LTS and Visual Studio 2022 • The Register

By on November 8, 2021 0

Microsoft released .NET 6.0 with long-term support and Visual Studio 2022, its versatile Windows IDE.

Deployment is important for Microsoft’s development platform, as .NET 6.0 is the first LTS release since .NET Core 3.1 in December 2019. LTS releases are scheduled every two years, with short-term releases in between. of them. The current .NET 5.0 will no longer be supported in mid-2022.

Development with .NET 6 is not supported in Visual Studio 2019. Visual Studio developers who want to use .NET 6 should immediately upgrade to Visual Studio 2022. Download the .NET 6.0 SDK.

The relationship between .NET and these two varieties of Visual Studio (there is also a Mac version) has been controversial recently since Microsoft planned to remove a key feature, Hot Reload, from the open source SDK to make Visual Studio more attractive. The decision was overturned after an uproar, but with damage to Microsoft’s open source credentials, especially after the .NET Foundation was revealed to be legally related to Microsoft and not truly independent, despite its claims.

In an article to mark today’s publication, Microsoft boasted of “massive performance gains” as they have already reduced “the cost of hosting cloud services at Microsoft.” We’ve looked at some of those gains here.

There are a lot more new features, as you might expect, especially for those who have skipped .NET 5.0. C # language is now at version 10 with a global usage directive, value-type structures, interpolated strings and more new features, while F # is at version 6.0 and includes support for tasks and more Again.

The aforementioned Hot Reload allows editing of source code while an application is running, with the result displayed without a complete rebuild. Blazor WebAssembly now has backward compilation: this technology allows C # to be used to code browser applications that run both on the client and on the server. HTTP / 3 support has been added to ASP.NET Core. Apple Silicon is supported. Single file applications, described as “a single file binary that has exactly one file on disk and does not need to extract any of the main runtime assemblies into temporary directories”, are now supported on Windows and macOS as well as Linux.

Visual Studio 2022 is the first 64-bit version of the IDE itself – although it has been able to compile 64-bit applications for years – and includes “AI-assisted code completion” called IntelliCode, although ‘There is no news yet on GitHub Plus Copilot Advanced in Visual Studio, it is likely to appear at a later date. Copilot for Visual Studio Code is still preview by invitation only. Find in Files is said to be “up to 3 times faster”. The team said the IDE is “lighter” than before, perhaps learning from its cousin VS Code.

Other new features in Visual Studio 2022 range from support for solutions that include projects in multiple Git repositories to a revamped user interface with a new font for code called Cascadia and updated icons.

Visual Studio is available in three editions. Community is free and supported for individuals, or for up to five users in “non-commercial organizations,” defined as organizations with less than 250 PCs or less than $ 1 million in revenue. Companies are not allowed to use the Community Edition to develop and test applications, except in limited circumstances, such as open source software. Professional is chargeable and unrestricted. The Enterprise edition adds features such as IntelliTrace debugging (logging and tracking code execution history), code coverage, and other testing and performance tools.

While this all sounds good, there are a few disappointments for .NET developers. The first is that Microsoft recently confirmed that .NET 6 will not arrive in Universal Windows Platform (UWP) applications. Windows desktop developers are directed to WinUI 3 and the Windows Application SDK, or can continue to develop with older Windows Forms and Windows Presentation Foundation, although if the latter path is chosen they will not get the full appearance of Windows 11 using what Microsoft calls Fluent Design. Another issue is that the MAUI (Multi-Platform App UI) cross-platform user interface, based on Xamarin technology, is not yet ready and is still in preview, slated for release next year. MAUI allows you to build mobile and desktop apps for iOS, Android, macOS, and Windows from a single code base.

Perhaps the greatest concern is that Microsoft’s internal debate over the future of .NET and the balance between Microsoft’s business interests and those of the open source community does not yet appear to be resolved, despite the flashback on Hot Reload.

One would have thought that Microsoft’s business interests are well aligned with those of open source users, as the company benefits from hosting .NET applications on Azure, and the success of VS Code as well as the continued popularity of GitHub have great potential to attract developers to the Platform.

It is now evident that some within the company see Visual Studio as a competitor to VS Code and fear giving too much away with open source .NET, which can continue to be corrosive to the framework.

The .NET Foundation hosted a YouTube thread with its community last week, which .NET developer George Stocker described as inconclusive, as well as threads hosted by GitHub. “There has been no follow-up from the board of directors to the questions asked, or even a timeline for answering the questions … the discussions seem to be an outlet for community frustration rather than a means. to get the .NET Foundation and its community on the same page, ”he said.

Still, .NET 6.0 and Visual Studio 2022 are packed with new features, performance is improved, and developers will be happy that they can now code for an LTS runtime environment while upgrading from .NET Core 3.1. ®


Source link