Visual Studio 2022 17.2 goes into general availability and has update issues — Visual Studio Magazine
Visual Studio 2022 17.2 goes into general availability, encounters update issues
Visual Studio 2022 17.2 reached general availability status this week, but some users outside of the United States soon experienced download update issues.
“As of 7:23 a.m. PDT May 11, 2022, we are aware of some issues outside of the US region that are still experiencing delays and failures in updating Visual Studio and other downloads. Teams are currently investigating and we apologize for the inconvenience,” reads a notice above the announcement blog post. It provides links for problem updates as well as a workaround.
If you manage to download the update, you will see a host of improvements to the flagship IDE.
“This release brings continued improvements to the C# and .NET experiences, new Git performance and experiences, updates for C++ developers, and new Azure tools for on-premises development and deployment,” Microsoft said.
As for this last element for cloud development, a focal point for Microsoft, the functionality of connected services has been improved with the possibility of using containers for certain Azure services configured by the developer, allowing local debugging. Connected Services is a collection of Visual Studio tools that help developers connect applications to:
- Azure Services
- OpenAPI endpoints
- gRPC (Remote Procedure Call) endpoints
- Windows Communication Foundation (WCF) endpoints
The v17.2 update also supports the new Azure Container Apps service for direct deployment or configuration with GitHub Actions. This service helps developers run microservices and containerized applications on a serverless platform, and it can now serve as a deployment target for projects using containers such as a web application or ASP.NET Core API.
The IDE’s “Go to Implementation” functionality has also been enhanced with Source Link, which enables debugging the source code of .NET assemblies from NuGet. Now, when working with referenced assemblies that provide embedded source information, developers can access the original source files that implement the target symbols, as shown in this animated GIF:
Other release highlights as described by Microsoft include:
- Raw string literal: “In C# 11, we added a new language feature called raw string literals. We now have a refactoring to convert a normal or verbatim string literal to a raw string literal.”
- Debugging collections: “We recently highlighted this feature in a Visual Studio 17.2 Preview 2, but it bears repeating. If you regularly debug your .NET code and want to inspect large and possibly complex collections, we’ve introduced a new visualizer in the debugging experience for IEnumerable object types.”
Razor Editor: “As of version 17.1, we’ve improved the reliability of the new Razor editing experience. In version 17.2, we’ve added in-editor support for:
- Ability to collapse regions for easy readability and organization
- The new Razor editor now supports snippet functionality in C# code!
- We heard you and the ‘wrap div’ shortcut is enabled, use Shift + Alt + W to run”
- Live Web Preview for ASP.NET Framework: “In the initial release of Visual Studio 2022, we introduced a new feature for those who work with Web Forms applications and the designer. Web Live Preview allows your running application to be the design surface and provides code synchronization between the source and the web surface to help you navigate directly to the code file of the element you’re editing.”
- C++: “Support for C++20 modules is coming to CMake in Visual Studio! You can try out our experimental support now by making sure you supply the latest /std:c++20 or /std:c++ switches to the compiler and using the MSBuild (Visual Studio) generator for CMake rather than Ninja.” The online hints and improved device and RTOS register views for embedded developers, introduced in v17.1, also boost C++ development.
- Git tools: “We continue to work on improving the Git experience in Visual Studio. Inline staging support was introduced in Visual Studio 17.2 Preview and now you can also enable it in 17.2 GA by going to to the preview features pane and toggling the ‘Enable line staging support checkbox.’
- Business support: “Version 17.2 is the second Long-Term Servicing Channel (LTSC) for Visual Studio 2022. Servicing Channels provide larger organizations with increased flexibility in when they choose to adopt new features that are released with updates. Minor release updates for Enterprise, Professional, and Build tools. 17.2 LTSC will be supported for 18 months, until January 9, 2024.”
David Ramel is an editor and writer for Converge360.