.NET 6 LTS and VS 2022: Major releases spoilt by continuing concern about Microsoft's commitment to open source

Both bring new features and better performance


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

The roll-out is a big one 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 to come every two years, with short-term releases in between. The current .NET 5.0 will go out of support in mid-2022.

Developing with .NET 6 is not supported in Visual Studio 2019. Visual Studio developers wishing to use .NET 6 must upgrade immediately to Visual Studio 2022. Users of the cross-platform Visual Studio Code have an easier time – it is just a matter of downloading the .NET 6.0 SDK.

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

In a post marking today's release, Microsoft bragged of "massive gains in performance" such that they have already reduced "the cost of hosting cloud services at Microsoft." We looked at some of those gains here.

There is a lot more fresh stuff, as you would expect, especially for those who skipped .NET 5.0. The C# language is now at version 10 with a global using directive, value type structs, interpolated strings, and more new features, while F# is at version 6.0 and includes task support and more.

The aforementioned Hot Reload allows editing of source code while an app is running, with the result showing without full rebuild. Blazor WebAssembly now has ahead-of-time compilation: this technology enables C# to be used to code browser applications running on the client as well as 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 core runtime assemblies to temporary directories," are now supported on Windows and macOS as well as Linux.

Visual Studio 2022 is the first 64-bit release of the IDE itself – though it has been able to compile 64-bit applications for years – and includes "AI-assisted code completion" called IntelliCode, though there is no news yet about GitHub's more advanced Copilot in Visual Studio, it is likely to appear at a future date. Copilot for Visual Studio Code is still in invitation-only preview. Find in Files is claimed to be "as much as 3x faster." The team said that the IDE is "more lightweight" than before, perhaps learning from its VS Code cousin.

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 refreshed icons.

Visual Studio comes in three editions. Community is free and supported for individuals, or for up to five users in "non-enterprise organisations," defined as organisations with fewer than 250 PCs or under one millions US dollars in revenue. Enterprises are not licensed to use the community edition for developing and testing applications except in limited circumstances, such as for open-source software. Professional is paid-for and unrestricted. The Enterprise edition adds features such as IntelliTrace debugging (record and trace code execution history), Code Coverage, and other test and performance tools.

While that all sounds good, there are some disappointments for .NET developers. One is that Microsoft confirmed recently that .NET 6 is not coming to UWP (Universal Windows Platform) apps. Windows desktop developers are being directed towards WinUI 3 and the Windows App SDK, or may continue developing with the old Windows Forms and Windows Presentation Foundation, though if the latter path is chosen, they will not get the full Windows 11 look and feel using what Microsoft calls Fluent Design. Another issue is that the cross-platform MAUI (Multi-Platform App UI), based on Xamarin technology, is not ready yet and is still in preview, set for release next year. MAUI enables mobile and desktop apps to be built for iOS, Android, macOS and Windows, from one code base.

Perhaps the biggest concern is that Microsoft's internal debate about the future of .NET and the balance between Microsoft's commercial interests and those of the open-source community does not yet seem resolved, despite the backtrack over Hot Reload.

One might have thought that Microsoft's commercial interests are well aligned with open-source users since the company benefits when .NET applications are hosted on Azure, and the success of VS Code along with the continuing popularity of GitHub has great potential to attract developers to the platform.

It is now apparent that some within the company do see Visual Studio as in competition with VS Code, and worry about giving too much away with open-source .NET, and this may continue to be corrosive for the framework.

The .NET Foundation held a discussion on YouTube with its community last week, which .NET developer George Stocker described as inconclusive, along with GitHub-hosted discussions. "There's been no followup from the Board to the questions asked, or even a timeline for when the questions will be answered... the discussions seem to be an outlet valve for the community's frustration rather than a means to get the .NET Foundation and its community back on the same page," he said.

Still, .NET 6.0 and Visual Studio 2022 are replete with new features, performance is improved, and developers will be glad to be able now to code for an LTS runtime while also moving on from .NET Core 3.1. ®


Other stories you might like

  • Prisons transcribe private phone calls with inmates using speech-to-text AI

    Plus: A drug designed by machine learning algorithms to treat liver disease reaches human clinical trials and more

    In brief Prisons around the US are installing AI speech-to-text models to automatically transcribe conversations with inmates during their phone calls.

    A series of contracts and emails from eight different states revealed how Verus, an AI application developed by LEO Technologies and based on a speech-to-text system offered by Amazon, was used to eavesdrop on prisoners’ phone calls.

    In a sales pitch, LEO’s CEO James Sexton told officials working for a jail in Cook County, Illinois, that one of its customers in Calhoun County, Alabama, uses the software to protect prisons from getting sued, according to an investigation by the Thomson Reuters Foundation.

    Continue reading
  • Battlefield 2042: Please don't be the death knell of the franchise, please don't be the death knell of the franchise

    Another terrible launch, but DICE is already working on improvements

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our monthly gaming column. Since the last edition on New World, we hit level cap and the "endgame". Around this time, item duping exploits became rife and every attempt Amazon Games made to fix it just broke something else. The post-level 60 "watermark" system for gear drops is also infuriating and tedious, but not something we were able to address in the column. So bear these things in mind if you were ever tempted. On that note, it's time to look at another newly released shit show – Battlefield 2042.

    I wanted to love Battlefield 2042, I really did. After the bum note of the first-person shooter (FPS) franchise's return to Second World War theatres with Battlefield V (2018), I stupidly assumed the next entry from EA-owned Swedish developer DICE would be a return to form. I was wrong.

    The multiplayer military FPS market is dominated by two forces: Activision's Call of Duty (COD) series and EA's Battlefield. Fans of each franchise are loyal to the point of zealotry with little crossover between player bases. Here's where I stand: COD jumped the shark with Modern Warfare 2 in 2009. It's flip-flopped from WW2 to present-day combat and back again, tried sci-fi, and even the Battle Royale trend with the free-to-play Call of Duty: Warzone (2020), which has been thoroughly ruined by hackers and developer inaction.

    Continue reading
  • American diplomats' iPhones reportedly compromised by NSO Group intrusion software

    Reuters claims nine State Department employees outside the US had their devices hacked

    The Apple iPhones of at least nine US State Department officials were compromised by an unidentified entity using NSO Group's Pegasus spyware, according to a report published Friday by Reuters.

    NSO Group in an email to The Register said it has blocked an unnamed customers' access to its system upon receiving an inquiry about the incident but has yet to confirm whether its software was involved.

    "Once the inquiry was received, and before any investigation under our compliance policy, we have decided to immediately terminate relevant customers’ access to the system, due to the severity of the allegations," an NSO spokesperson told The Register in an email. "To this point, we haven’t received any information nor the phone numbers, nor any indication that NSO’s tools were used in this case."

    Continue reading

Biting the hand that feeds IT © 1998–2021