Visual Studio 2022 17.3, .NET MAUI now generally available — Visual Studio Magazine
Visual Studio 2022 17.3, .NET MAUI now generally available
On August 9, Microsoft made Visual Studio 2022 17.3 generally available, along with .NET Multi-platform App UI (.NET MAUI), an evolution of Xamarin.Forms that adds support for building desktop applications in more mobile.
While .NET MAUI as a disparate framework reached GA status in May, it was only released today from preview in Visual Studio, now available in the Visual Studio release channel 2022 on Windows.
“We’ve created tools to help you develop your .NET MAUI apps without slowing you down,” Chris Hardy, program manager on Microsoft’s .NET team, said in an Aug. 9 announcement post. “Hot Reload, Live Visual Tree, and XAML Live Preview speed up your development time by letting you apply code changes and see them immediately. With XAML Hot Reload, you can make changes to your UI and see them immediately in the running application. With .NET Hot Reload, you can make changes to your code, save and see those changes as well.”
Indeed, Hot Reload was a long-requested feature by developers in the Microsoft camp. It came late to Xamarin.Forms, which acquired the XAML Hot Reload feature in July 2019, lagging behind alternative offerings like React Native and Flutter.
Developing apps for Microsoft Teams
Microsoft also touted the ability to use the Visual Studio IDE with its Microsoft Teams collaboration software, which the company turned into a low-code development tool using Teams Toolkit for Visual Studio.
“By using Microsoft Teams as the platform to build apps, you can extend Teams for your app solutions,” Hardy said. “Teams Toolkit for Visual Studio makes it easy to get started with apps that embed the UI in a tab, notify a channel with a custom message, trigger a task from a chat command, and more.”
Live Unit Testing
The new update also features improved live unit testing, which was previewed in March in a v17.2 preview.
Live Unit Testing automatically runs unit tests in the background, reporting results and code coverage in real time. When code is changed, it provides feedback on the impact of the changes on existing tests and whether the new code is covered by existing tests, reminding developers to write unit tests when fixing bugs or adding new features. new features.
“Live unit testing now scales better with larger solutions by limiting builds to what’s needed and building projects in parallel,” Hardy said. “Further improvements to the Live Unit Testing build mechanism allow for more reliable builds and support for a wider variety of solutions. It’s now easier to configure your solution for live unit testing with the introduced a setup wizard to set up Live Unit Testing in just a few steps. Other enhancements include the ability to cancel redundant test runs and make progress easier to understand by showing operations and errors in status bar of the Live Unit Testing window.”
Azure container apps
This offering aired in May at the company’s big Build developer conference. It enables customers to run microservices and containerized applications on a serverless platform, built on powerful open-source technology in the Kubernetes ecosystem.
The Visual Studio v17.2 release added support for the new Azure Container Apps service to be used for direct deployment or configuration with GitHub Actions.
Today, Hardy explained the service in more detail, noting that it allows for on-demand deployment via a right-click command or automatically by configuring CI/CD with GitHub Actions. “Azure Container Apps lets you run microservices and containerized applications on a serverless platform,” he said. “With Container Apps, you get the benefits of running containers while leaving behind the worries of manually setting up cloud infrastructure and complex container orchestrators.
“Visual Studio will help you choose existing Azure resources or create new ones to use to deploy your application. It will also build the container image using the Dockerfile in the project, push that image to ACR, and finally deploy the new image on the selected container app.”
Other release highlights include:
IEnumerable viewer: This was a focal point of v17.3 Preview 3, which shipped in May, when Microsoft said, “The .NET IEnumerable debug viewer is one of our most popular debugging features of late. This was a much-requested feature by developers like you. We released the first version in Visual Studio 17.2 to an incredibly positive response. You can learn all about it here IEnumerable visualizer (microsoft.com).” In today’s announcement post, Hardy said developers should “take a look at some much-requested improvements in the IEnumerable Viewer like filtering, theming, and CSV export. Read more about these improvements on our blog here.”
- C++ improvements: The team responded to developer feedback that it should limit CPU usage during C++ builds, which resulted in a new feature to enable low priority builds in the IDE. Other comments also led to new static analysis checks on std::optional to guard against undefined behavior. “We also worked hard on performance improvements for C++ developers,” Hardy said. “In 17.3, you’ll find that Visual Studio indexes and colors your C++ code faster than ever. Among the improvements seen is a 2X speed improvement in indexing a new Unreal Engine 5 C++ solution.”
- What’s new? Developers can find out with a Help > What’s New or by updating Visual Studio.
- Staging the Git line:Support for this includes the ability to stage specific lines and/or pieces of code directly from the editor into the diff view. “To get started, stage one of your recent edits by selecting the corresponding color margin and using the Peek Difference UI to stage your edit. Read our blog post to learn more and share your feedback “, said Hardy.
- Show tabs on multiple lines: This ability to wrap tabs in multiple rows to have more horizontal tabs open at once appeared in v17.3 Preview 1 in May. More details on this developer community feedback suggestion can be found in this article.
- Reopen closed documents: Developers can now reopen the last tab they closed by right-clicking on a tab via the keyboard shortcuts Ctrl+K or Ctrl+Z or by navigating to the menu item under Window > Restore Closed Tab.
Visual Studio 2022 17.4 Preview 1
Microsoft also today released the release notes for the first preview of the upcoming release.
“Version 17.4 will be the first release of Visual Studio generally available as a native Arm64 application,” Hardy said. It’s confusing because in June, Microsoft said, “We’re excited to announce that the release of Visual Studio 2022 17.3 Preview 2 is now available as a native Arm64 app on Windows 11! This will be the first release of Visual Studio that natively supports building and debugging Arm64 applications on Arm-based processors.”
Regardless of the first release, it looks like Visual Studio is finally a native Arm64 application, one way or another. 17.4 will also be the third Long Term Servicing Channel (LTSC) release supported for 18 months from release. Feedback during the preview cycle is important to meet high developer expectations at release, said Hardy, who promised a new post soon on the first preview.
For now, the release notes show the introduction of two new features: Rollback – the ability to roll back to your previously installed version of Visual Studio – and Remove Out of Support Components. Speaking of the latter, the release notes state, “The second new feature included with the Visual Studio installer is the ability to easily remove any components that have entered an out-of-support state. Developers and administrators IT can invoke this action to bulk uninstall these unsupported components, which will make it easier to maintain a secure and compliant environment.Some of this functionality is provided in Preview 1, and the rest will go live with the preliminary version 2.
Other notes relate to Git tools, .NET productivity, finding and navigating code, and many more.
David Ramel is an editor and writer for Converge360.