2022Logo Visual Studio 2022 version 17.2 Release Notes


Tip

Watch the recordings of the Visual Studio 2022 launch event to learn about what's new, hear tips & tricks, and download free digital swag.

Developer Community | Visual Studio 2022 Roadmap | System Requirements | Compatibility | Distributable Code | Release History | License Terms | Blogs | Latest Release Known Issues | Whats New in Visual Studio Docs


Click a button to download the latest version of Visual Studio 2022. For instructions on installing and updating Visual Studio 2022, see Update Visual Studio 2022 to the most recent release. Also, see instructions on how to install offline.

Download Community Button Download Professional Button Download Enterprise Button

Visit the Visual Studio site to download other Visual Studio 2022 products.


Visual Studio 2022 version 17.2

Visual Studio 2022 version 17.2 Releases

Visual Studio 2022 Blog

The Visual Studio 2022 Blog is the official source of product insight from the Visual Studio Engineering Team. You can find in-depth information about the Visual Studio 2022 releases in the following posts:

Visual Studio 2022 Archived Release Notes


17.2.6 Visual Studio 2022 version 17.2.6

released July 12, 2022

Issues Addressed in this release of 17.2.6

  • Removed authorization telemetry that was in some cases causing Visual Studio to show meaningless OS sign-in dialog during launch.
  • Updated LibraryManager to accommodate changes to cdnjs API
  • Fixed an issue that caused intelli-sense to stop working when an F# project was re-opened in the same edit session.

From Developer Community


17.2.5 Visual Studio 2022 version 17.2.5

released June 22, 2022

Issues Addressed in this release of 17.2.5

  • Fixed bug in VC++ Runtime with broken links for MFC OLE Linking/Embedding Containers
  • Fixed an issue where a SxS install of VS2022 and VS2015 (or older) causes VS to fail scanning for extensions.
  • Improved validation of container names when provisioning Azure Container Apps.

From Developer Community

17.2.4 Visual Studio 2022 version 17.2.4

released June 14, 2022

Issues Addressed in this release of 17.2.4

  • Updated the side by side Dev 16.11 C++ Toolset to version 14.29.30145.00. The latest version of the Dev 16.11 C++ Toolset contains important bug fixes, including fixing all remaining C++20 defect reports. For information about bug fixes, including C++20 defect reports in Dev 16.11, please see https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.11.14
  • Fixed a Potential hang the first time a package is loaded (when we apply that package's settings via DTE.Properties) or in other scenarios that use DTE.Properties

From Developer Community

Security Advisory


17.2.3 Visual Studio 2022 version 17.2.3

released May 31, 2022

Issues Addressed in this release of 17.2.3

  • Adds the Windows SDK (10.0.22621) for Windows 11, version 22H2, as an optional component in the Visual Studio installer.
  • Resolved an issue where clicking "Create a Pull Request" wouldn't open the browser to the hosting provider's create pull request page.
  • Adds a notification when Git detects an unsafe repository and allows marking the repository as safe.

From Developer Community


17.2.2 Visual Studio 2022 version 17.2.2

released May 24, 2022

Issues Addressed in this release of 17.2.2

  • Fixed a crash in the Package and Publish wizard when working with WinUI projects that target the 1.1.0 version of the Windows App SDK.

From Developer Community


17.2.1 Visual Studio 2022 version 17.2.1

released May 17, 2022

Issues Addressed in this release of 17.2.1

  • Fixed false positive C26828 warnings on C++ enum types with overlapping values.
  • Fixed incorrect AddressSanitizer error reporting during scenarios where memory is allocated prior to ASAN initialization.

From Developer Community


What's New in Visual Studio 2022 version 17.2.0

Visual Studio 2022 Blog

The Visual Studio 2022 Blog is the official source of product insight from the Visual Studio Engineering Team. You can find in-depth information about the Visual Studio 2022 releases in the following posts:

Support Timeframe

Visual Studio 2022 version 17.2 is the second supported long term servicing channel for Visual Studio 2022. Enterprise and Professional customers needing to adopt a long term stable and secure development environment are encouraged to standardize on this version.  As explained in more detail in our lifecycle and support policy, version 17.2 will be supported with fixes and security updates for 18 months through January 2024.

You can acquire the latest most secure version of Visual Studio 2022 version 17.2 in the downloads section of my.visualstudio.com or the Microsoft Catalog. For more information about Visual Studio supported channels, please review the support policy for Visual Studio 2022.

Visual Studio 2022 Archived Release Notes


Installer

  • For 17.2, we fixed an issue preventing customers from installing Visual Studio due to a GPO policy setting in the system registry. Visual Studio will now function the same way that WebView2 functions with regard to this installation.

Editor

  • Visual Studio can now automatically save code documents whenever the application loses focus. This feature can be accessed via Tools > Options > Environment > Document. If the "Autosave" option is checked, Visual Studio will attempt to save all dirty code documents whenever the Visual Studio application loses focus (e.g. when switching to another application in Windows).

C++

  • In 17.1 we introduced peripheral register and rtos views for embedded developers. We are continuing to improve the capabilities of those views with usability improvements in 17.2. Users can now click a pin icon next to peripherals, registers, or fields to pin them the top of the Peripheral View.
  • Added compiler support for C++23 feature deducing this, available under the /std:c++latest flag.
  • Added inline parameter name and type hint support, toggled by pressing Alt+F1 or double-tapping Ctrl. This behavior can be customized under Tools > Options > Text Editors > C/C++ > IntelliSense. Inline parameter name and type hints
  • Added experimental support for C++20 modules in CMake projects. This is currently only available with the Visual Studio (MSBuild) generator.
  • Added IntelliSense support for C++23 features deducing this and if consteval.
  • In 17.1 we introduced peripheral register and RTOS views for embedded developers. We are continuing to improve the capabilities of those views with usability improvements in 17.2:
    • The RTOS tool window is now hidden by default, this prevents showing a tool window with error messages that are not relevant when an RTOS is not being used.
    • When a user double clicks on an RTOS object in the tool window it adds a watch for the object.
    • When a user selects the stack pointer start/end values in the RTOS tool window it is opened in the memory window.
    • Thread awareness has been added for device targets for the call stack window.
  • Added implementaion of the remaining C++20 defect reports (a.k.a. backports). All C++20 features are now available under the /std:c++20 switch. For more information about the implemented backports, please see C++20 Defect Reports project on microsoft/STL GitHub repository and this blogpost
  • Added various C++23 Library featues, available under the /std:c++latest flag. For details about the new features, please refer to the STL Repo changelog
  • Improved performance of the initial C++ indexing by up to 20%, depending on the depth of the include graph.

Git Tooling

  • Enhanced line staging experience by allowing stage line adornment to work in different diff modes (side by side, inline, left, right view).
  • Stage and Undo commands in peek toolbar now operate on the target hunk.
  • Added the ability to enable Git commit-graph for better history and Git operations performance.
  • Improved interactive staging by adding support for staging individual lines of code right from the editor and the diff view.
  • Enhanced the branch checkout experience, a.k.a branch switching by adding in more options and context for when there are un-committed changes.
  • Enhanced the detached HEAD experience by providing the option to keep or discard commits when switching to a branch.
  • Added an option to include license template when creating a new repository.
  • Line-staging support, a.k.a interactive staging with the ability to stage specific lines and/or chunks of code right from the editor and the diff view.
  • Azure DevOps connection detection enhancements making it easier to related work items to commits.
  • Visual Studio now consumes 64-bit Git for Windows.

Test tools

  • You can now use a faster code coverage window with more flexible columns to organize and save your view. You can enable the code coverage experience improvements in Tools > Options > Environment > Preview Features.
  • Remote Testing now supports test runs against remote arm64 windows environments.
  • Significant improvements across full functionality of Live Unit Testing are available under a preview feature flag including:
    • Supporting more solutions out-of-the-box than before
    • Better handling of large solutions
    • Better default behavior working with large test sets
    • Better cancellation abilities of test runs in progress
    • More configuration options with new Live Unit Testing wizard and Lutignore file
    • Enable this new Live Unit Testing build experience in Tools > Options > Environment > Preview Features and read our blog post to learn more.
  • We are also previewing a more advanced test progress bar that includes more details on where the Test Explorer is in the test execution process with live updates.

.NET Productivity

  • We now surface embedded source and Source Link as part of Go to Implementation if a referenced assembly has embedded source or Source Link. This allows you to navigate to the original source files that implement the target symbol.
  • In .NET 7 we added a new attribute called the StringSyntaxAttribute which will allow you to tell us what kind of data a string represents such as JSON, Regex, or DateTime. We added support for this attribute so you will get syntax highlighting for the new StringSyntaxAttribute for JSON.
  • We added a diagnostic message for the new JSON StringSyntaxAttribute when there is a misplaced string literal in an object literal to say that a colon is expected.
  • We now have a refactoring that wraps a collection of initializers for both Visual Basic and C#.
  • We now support embedded languages for the new C# 11 language feature raw string literals. To use raw string literals, set the language version in your project file to preview: <LangVersion>preview</LangVersion>.
  • Background Code Analysis now has more configuration options in Tools > Options allowing you to set the diagnostic scope to None in-order to turn off Background Code Analysis.
  • Code Cleanup now supports all code style options.
  • Quick Info will now display signatures of anonymous delegates.
  • There is a new change in the compiler to not allow parameterless constructors inside of structs. We added a new code fix that will automatically fix this.
  • In .NET 7.0 we added a new attribute called the StringSyntaxAttribute which will allow you to tell us what kind of data a string represents such as JSON, Regex, or DateTime. We added support for this so you will get syntax highlighting in Visual Studio based on the type of data that the string represents.
  • Double clicking on inline parameter or type hints will now insert parameter or type names.
  • We added a new refactoring that removes unnecessary lambda expressions and calls the method group directly. Place your cursor on an unnecessary lambda. Press Ctrl+. to trigger the Quick Actions and Refactorings menu. Select Remove unnecessary lambda expression.
  • In C# 11 we are adding 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. To use raw string literals, set the language version in your project file to preview: <LangVersion>preview</LangVersion>. Place your cursor on a normal or verbatim string. Press Ctrl+. to trigger the Quick Actions and Refactorings menu. Select Convert to raw string. Convert to raw string

Razor (ASP.NET Core) Editor

  • The new Razor editor now shows you the colors inline for text document colors.
  • The new Razor editor now supports the ability to collapse regions.
  • The new Razor editor now supports the “wrap div” shortcut Shift+Alt+W.

IntelliCode

  • For 17.1, IntelliCode started suggesting quick actions for C# based on a user's intent in the IntelliSense list. For 17.2, these are now shown as auto-suggested code that appears in the editor upon typing.
  • For 17.2, IntelliCode's suggestions for repeated edits also appear as auto-suggested code when the suggested edit only involves adding code. This applies to both edits that span single lines and multiple lines.

Container tools

  • You can now add Docker Compose container orchestration support to an Azure Functions project and debug it locally.
  • We added .NET 7 support.

.NET Debugging with WSL

  • Improved troubleshooting for configuration issues including an automated installation of WSL.

Service Fabric

  • We added .NET 7 support.

SQL Server Data Tools

Web Tools

  • Creation of new Azure Function projects is now fully integrated into the general New Project dialog allowing you to pick and configure Azure Function triggers without the need for an additional dialog. You also get the option to create a dockerfile as part of the project creation. When further configuration through Connected Services is needed, the experience navigates you there and guides you through the rest of the steps.
  • You can now connect your application to PostgreSQL (Postgres - Official Image | Docker Hub), MongoDB (Mongo - Official Image | Docker Hub) and SQLite (Data Source=Sqllite.db) through the Connected Services experience
  • Warnings coming from scaffolded coded and its non-nullable properties will be hidden by default by adding the property "Nullable" with the value "annotions" in the corresponding .csproj file.
  • The Add Dependency dialog in Connected Services now features a search experience.

General

  • Improved proxy support by detecting when users are behind a proxy and proactively prompting for credentials when Visual Studio needs to access online resources

Microsoft Teams development tools

  • The Microsoft Teams App project template has been improved and now creates configuration files consistent with the teamsfx CLI, including the .fx folder.
    • We recommend creating a new project using the updated template for any existing Teams Apps you've created with previous versions of the Teams Toolkit.
  • We've removed account selection and automatic registration of Teams resources from the Microsoft Teams App project template.
    • You can now choose when to sign-in with your M365 identity and register app resources using the Project > Teams Toolkit > Configure Microsoft Teams App menu option.
    • Updates to the manifest.*.template.json files can be synchronized with Teams Developer Portal by selecting this menu item again at any time.
  • You can now create and debug Bots for Microsoft Teams.
    • Create a new project using the Microsoft Teams App project template and select the Bot capability.
    • Use the Project > Teams Toolkit > Configure Microsoft Teams app menu to register the app and Bot.
  • You can now create resources for Tabs and Bots in your Azure subscription.
    • Use the Project > Teams Toolkit > Provision in the Cloud menu to create resources in a subscription.
    • Use the Project > Teams Toolkit > Deploy to the Cloud menu to publish code to those resources.
  • You can open remotely hosted resources in a browser that are created from the Provision menu using the Preview Teams app menu.

Debugging & Diagnostics Debugging & Diagnostics

  • We now support a new data visualizer to evaluate the IEnumerable interface implementations.
  • IEnumerable visualizer will help explore larger collections objects in tabular view.
  • We added support for Dependent Tracepoint.
  • Now you can set any breakpoint dependent on the tracepoint and vice versa.
  • If the breakpoint is dependent on tracepoint it hits only after the tracepoint is hit. (i.e., after the trace/log message is printed in the output window)

Debugging & Diagnostics

  • IEnumerable visualizer will help explore larger collections objects in a more streamlined way in the tabular/ data grid view.It supports IEnumerable collections where T can be simple types or complex types like dictionaries, encapsulated.

Convert to raw string

  • Whenever you have an IEnumerable code implementation, you will see a magnifying glass icon in the Value column of the Locals/ Watch window.You will also see the icon when you hover over a variable. Click the Icon, and you can access the IEnumerable visualizer.

  • You can use Hide columns to Hide duplicate data or expand columns to see more profound items in the complex data. Finally, you can Hide Childrens to get a more concise view of your data.

Convert to raw string

Issues Addressed in 17.2

  • Fixed an issue where Account picker under "Azure Service Authentication" is broken and causes a restart of VS, and people using languages other than English were unable to pick a different account/add a new one for Azure Service Authentication.
  • This version of Visual Studio includes Win App SDK 1.0.3 see Windows App SDK release channels - Windows apps | Microsoft Docs for more details.
  • Fixed an issue where Solutions containing WiX projects crash on open.
  • Fixed an issue where Tooltips are not displayed properly on Daytona controls.
  • Updated the webview2 baseline in Daytona.
  • Fixed an issue where "Sync branch" would fail in the scenario where "local and remote branches have diverged" and "pull.rebase was unset".
  • Fixed issue where user building native C++ app targeting Android platform encounters build errors if workload "Mobile Development with .NET" is also installed.
  • Fixed a UI delay after Windows Forms .NET project load or build when Toolbox has not yet initialized.
  • Fixed missing bitwise enum warnings for some inputs.
  • Selecting "Load All Symbols" in the CPU Tool no longer causes blank lines to show in analysis.
  • IntelliSense is no longer extremely slow (taking almost a minute to respond) on a pattern used in the Vulkan SDK's C++ headers.
  • Addressed an issue that could pop up "CMake Integration" dialog and lead to CMake stop working after saving changes to your CMakeLists.txt.
  • Improved performance of build configuration switching with CMake projects
  • Improved performance when editing large Razor source files.
  • Fixed an issue in the CPU Usage Tool views where text was clipped by blue usage bars
  • Removed an incorrect message stating there are no top insights in the CPU Usage tool even when there are top insights.
  • Fixed a bug where "No insights found" message in CPU Usage tool was not properly localized
  • Fixed an issue preventing some customers from installing Visual Studio due to a GPO policy setting in the system registry. Visual Studio will now function the same way that WebView2 functions with regard to this installation.
  • Fixed issue ‘Unable to install any extension (vsix) for Visual Studio on an offline machine'.
  • Fixed the MonoToolchain and emsdk workload installation manifest.

From Developer Community


Known Issues

See all open issues and available workarounds in Visual Studio 2022 by following the below link.


Feedback and suggestions

We would love to hear from you! You can Report a Problem or Suggest a Feature Feedback Icon by using the Send Feedback icon in the upper right-hand corner of either the installer or the Visual Studio IDE, or from Help > Send Feedback. You can track your issues by using Visual Studio Developer Community, where you add comments or find solutions. You can also get free installation help through our Live Chat support.


Blogs

Take advantage of the insights and recommendations available in the Developer Tools Blogs site to keep you up-to-date on all new releases and include deep dive posts on a broad range of features.


Top of Page