Visual Studio 2022 version 17.4 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.
Visit the Visual Studio site to download other Visual Studio 2022 products.
Support Timeframe
Visual Studio 2022 version 17.4 will be the next long term servicing channel once it's released. Enterprise and Professional users who are configured to receive updates on the 17.4 LTSC channel are supported and will receive fixes to security vulnerabilities through July 2024. For more information about Visual Studio supported baselines, please review the Support Policy for Visual Studio 2022.
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:
We’ve addressed a number of your top-reported bugs in this release and added new features based on your suggestions in Developer Community. Thank you for your continued feedback. Here’s a list of your suggestion we are shipping as part of this preview.
- Native ARM Support for Visual Studio
- Introduce the ability to roll back a Visual Studio Update
- Allow multiple Git repositories to be active at once
- Adding a button to Test Explorer to reset the tests to “Not Run”
- CMake weird test name prefix
- Moving/migrating from preview channel to release channel of Visual Studio 2019 installation
- Arm64 support for Node.js
- C++ Android development – gradle
- Arm64 support for Visual Studio SDK
- Feedback on the rollback feature introduced in VS 2022 version 17.4 P1
- Arm64 support for Game Development with C++
Summary of What's New in this Release of Visual Studio 2022 version 17.4
Arm64
This preview continues to build out our native Arm64 support on Windows 11. In addition to supporting .NET desktop development (WinForms and WPF), Desktop development with C++ (for MSBuild-based projects) and ASP.NET and Web development, we have now enabled the Universal Windows Platform development workload. Read our blog post to learn more.
C++
- Improved compiler error messages to provide more correct and useful information, especially for concepts.
- Added experimental MSVC flag
/experimental:log<directory>to output SARIF build logs to the specified directory. - Added support for C23 attributes to IntelliSense and continued progress in C++20 modules support.
- Improved indexing performance when opening a new solution. Large projects could see a 20-35% improvement from 17.3.
- Improved Named Return Value Optimisation (NRVO) by:
- Enabling NRVO for cases which involve exception handling or loops.
- Enabling NRVO even under
/Odif the user passes the/Zc:nrvoflag or/std:c++20or later or/permissive-. - Allowing users to disable NRVO with the
/Zc:nrvo-flag.
- Upgraded the version of LLVM shipped with Visual Studio to 15.0.1. See the LLVM and Clang release notes for what is available.
- Added support to Visual Studio for vcpkg artifacts with CMake projects. For projects that include a vcpkg manifest the environment will be activated automatically on project open. You can learn more about this in the vcpkg environment activation in Visual Studio blog post.
- You can now use Dev Containers for your C++ projects. You can learn more about this feature in our Dev Containers for C++ blog post.
- Made IntelliSense respect the order of preincluded headers when one is a PCH. Previously, when a PCH was used via
/Yuand force-included via/FI, IntelliSense would always process it first, before any other headers included via/FI. This did not match the build behavior, so with this change/FIheaders are processed in the order they are specified. - Removed internal prefixes from CTest names in Test Explorer.
- Updated the version of CMake shipped with Visual Studio to version 3.24.1. See the CMake release notes for what is available.
- Android SDK update
- Ant scripts have been removed, so users will no longer see Ant-based templates in the New Project dialog. For help migrating from Ant templates to Gradle templates, please see: Migrating Builds From Apache Ant (gradle.org)
- Added support for building with NDK 23 and 24
- Updated NDK component to the LTS version 23
- Added vectorized implementations of
ranges::min_element(),ranges::max_element(), andranges::minmax_element() - We continue to track the latest developments in C++ standardization, support for the following C++ 23 features is available by including /std:c++latest in your compiler options
- P2302
ranges::contains,ranges::contains_subrange - P2499
string_viewRange Constructor Should Beexplicit - P0849R8
auto(x):decay-copyIn The Language - The compiler part is not yet implemented; the library part was implemented in C++20 mode when Ranges were initially implemented.
- P0881R7
<stacktrace> - P2301R1 Add A
pmrAlias Forstd::stacktrace - P1328R1
constexpr type_info::operator==() - P2440R1
ranges::iota,ranges::shift_left,ranges::shift_right - P2441R2
views::join_with
- P2302
- Added an option "Navigation after Create Declaration/Definition" to allow you to choose the navigation behaviour of the Create Declaration/Definition feature. You can select between peeking (the default) or opening the document, or no navigation.
- Arm64 builds of Visual Studio now bundle Arm64 versions of CMake and Ninja.
- Added support for CMake Presets version 4. See the CMake release notes for details of what is available.
- Connecting to remote systems with the Connection Manager now supports SSH ProxyJump, which is used to access a SSH host via another SSH host (for example, to access a host behind a firewall).
Developer Community Highlights
- Introduce the ability to rollback a Visual Studio Update - 438 votes
- Compiler warnings after upgrading to 17.2.0 (C4311) - 49 votes
- EnableClServerMode always rebuilds project and prevents up to date check - 30 votes
- EnableClServerMode does not respect settings like compile as cpp for c files
- EnableClServerMode reduces the process priority of cl.exe to low - 30 votes
- C++ classes, structs and enums with C++ attributes are not visible by Intellisense - 23 votes
- Throwing SEH from C++ catch-block causes unexpected behavior since 19.23 - 19 votes
- lambda inside lambda with & capture passed to range based for loop causes C2512 in c++20, but is ok in c++17 - 13 votes
- C++20 Modules: Bogus Intellisense error when importers use exported nested class
- IntelliSense crashes with imported nested class with member type - 12 votes
- Codegen bug relating to stack allocation - 11 votes
- Test Adapter for Google Test with TYPED_TEST uses wrong names with an extra . - 11 votes
- Inconsistent auto-tabulation behavior when writing an enum class - 8 votes
- CMake Presets doesn't work for WSL2 on some distributive - 7 votes
- Standard violation: enum underlying type cannot represent all its values - 6 votes
- Underlying type of an unscoped enum? - 6 votes
- Incorrect C/C++ IntelliSense error 'enable_if' attributes with conditions that are not constant values are not supported - 6 votes
- /Zc:char8_t[-] ignored by IntelliSense, this genererating errors + squiggles that are not present when building. - 6 votes
- Undeclared identifier error with lambda capture - 6 votes
- Intellisense bug with standard-conforming preprocessor and
__VA_ARGS__comma elision - 5 votes - VS FOR LINUX. MSBuild fails on SOLUTION with cross-dependent Makefile project ! - 5 votes
Debugging & Diagnostics
- DataTable visualizer is now upgraded with new improvements like filtering, sorting, exporting, and theming.
- To export the data export in CSV/Excel format use the dropdown on the top right corner.
- The Visualizer will also allow you to filter data based desired filter string. It will return all the rows that contain a value that matches the filter string. You can also export the filtered and sorted results in CSV/Excel format.
- The visualizer window will be themed as per your selected Visual Studio theme.
Editor Features
- Audio Cues are now available in Visual Studio. To enable audio cues, go to Tools > Options, then head to Text Editor > General. In the Settings section, check the "Enable audio cues" option to enable audio cues. With this option checked, Visual Studio will play an audio cue when the caret in the editor arrives on a line with an error, breakpoint or warning. It will also play a cue when the line arrives on a line that has been added or removed when viewing a file in the diff view. These cues can be individual enabled or modified in the Settings Control Panel in Windows.
- Holding down the shift key while rotating the mouse wheel over the editor will now cause the editor to scroll horizontally. The amount that the editor scrolls can be configured in Tools > Options under Text Editor > Advanced.
- The current line number in the editor is is highlighted for higher visibility.
- The Output pane now has a button that will prepend each line with a timestamp to allow developers an easier way to see how much time transpired between steps in longer running processes.
- We fixed an issue that prevented printer settings from being saved correctly in some cases.
- When selecting text in the editor, Visual Studio will now automatically highlight matching strings. To enable this feature, go to Tools > Options, then head to Text Editor > General. In the Display section, check the "Show selection matches" option. With this option checked, any time a single line of text of 100 characters or less is selected, any matches will immediately be highlighted.
F#
We continue improving tooltips for F# identifiers, fixing a few edge cases:
Also fixed Visual Studio crashing for specifying
--versionin compiler flagsTooltips for local functions now show argument names

Git Tooling
Developer Community Highlights
- Allow multiple Git repositories to be active at once - 331 votes
- "Stage Line" tooltip incredibly annoying when editing in the right panel of a Diff window - 6 votes
Other features
- Multi-repository support means you can have up to 10 active Git repositories at once, allowing you to work with a solution that spans more than one repository and perform git operations like committing, pulling, and pushing across several repositories at the same time. Start using multi-repo support by opening a solution or folder with projects across several repositories. Read our blog post to learn more and share your feedback.
- Untrack and ignore tracked Git files
- In line with a recent Git security update, we have enhanced the user experience of trusting single and multiple Git repositories by improving repository status and utilizing a new trust dialog.
Installation and Updates
Rollback
The ability to return to your previously installed version of Visual Studio is now feature complete. For more information, please visit Troubleshoot Visual Studio installation and upgrade issues.
What will happen?
Rolling back will return Visual Studio to the version installed prior to the last applied update. It will keep any modifications to selected components chosen since that last update. Local customizations such as your user settings and profiles will be removed. However, your common synchronized settings such as themes, fonts, key bindings, and windows layout will be restored.
As of now, you will be able to rollback to components that come with the VS instance and shared components such as SDKs and tools that are owned and managed only by VS. Per-machine extensions, system-wide components, and tools that are not managed by Visual Studio will remain in their current versions. However, per-user extensions will be uninstalled. Please refer to section “Components that are compatible” below for more information.
What will happen to my security updates?
Security updates that are included in a release greater than the version you rolled back to will be removed which could make your device vulnerable. We recommend always updating back soon to the latest version to stay secure.
Which versions support rollback?
For the Release channel, you can rollback to your previously installed version if it was either 17.0.10 or higher, or 17.1.7 or higher.
Components that are compatible
The following table outlines the type of components that are supported with the rollback feature. As a general rule of thumb, components that VS installs, and uses are included in the rollback attempt.

Can I rollback if I am in a managed environment?
IT administrators can control this update behavior by using a policy that disables the ability to Rollback. Please refer to Configure policies for enterprise deployments for more information.
How can I Rollback?
You should be seeing “Rollback to previous version” from the More dropdown button on a product card after an update.

From there, a warning pop up will appear and you will have the option to either cancel or proceed.

Let us know your thoughts!
We would love to get your feedback on the rollback feature, so please give it a try and let us know what you think. You can share any feedback by visiting https://aka.ms/DeveloperCommunity-RollbackFeedback.
Remove out-of-support components
The Visual Studio 2022 version 17.4 installer contains a new feature that enables you to easily bulk remove all components that Visual Studio installed that have transitioned to an out-of-support state. This will help you maintain a secure and compliant environment. Developers can initiate this action on updates or modifications, and IT Admins can enforce it by policy. For those enterprises that use layouts, it’s possible to configure the layout once, and then future administrator update will respect this setting. This functionality also works for Visual Studio 2017 and 2019 if those client machines have been updated to use the latest Visual Studio installer. For additional details on how this functionality works, please refer to the Visual Studio Administrators guide or refer to the blog post.
Configure Policies via Administrator Templates (ADMX)
Today we released the Visual Studio Administrative Template files (ADMX/ADML), which makes it easy for IT admins to easily discover, manage and control Visual Studio behaviors that are available to be governed by policy. ADMX files are also easy to integrate with common management and deployment tools such as Group Policy Editor or Microsoft Endpoint Manager. Please find additional information here.
Visual Studio security updates now available through the Microsoft Update channel of Windows Update for Business
All Visual Studio security updates for all supported versions of Visual Studio are now available to modern cloud connected Azure Active Directory (Azure AD) joined devices that use Windows Update for Business and are managed by mobile device management solutions such as Microsoft Endpoint Manager (formerly known as Intune). You can enable this functionality on your client devices by setting the AdministratorUpdatesEnabled policy to 2. Refer to the blog post and the Visual Studio Administrators Guide for additional details.
IntelliCode
When IntelliCode has a suggestion to offer that modify or deletes part of a single line of code, the suggestion is now shown as a "diff view" on the editor surface for C# users. By using the TAB key, users can accept the prediction.
Microsoft Teams Development Tools (Teams Toolkit)
- With this new version of Teams Toolkit, updates are required to the Azure Active Directory template file, projectSettings.json, and the app manifest file. These updates are done automatically after performing a Teams Toolkit menu command, and don't change your project source code. The output window will shows the status of the update.
- The Tab application type in the Microsoft Teams App project template wizard includes the option to configure single sign-on or not. Add it later using Project > Teams Toolkit > Add Authentiation Code. Learn more about Teams Toolkit in the docs: https://aka.ms/teams-toolkit-vs-docs
Markdown
- We have added a very early preview of our markdown editor for Visual Studio. To enable the markdown editor, go to Tools > Manage Preview Features, then check the "Markdown language service" option.
- Once the feature is enabled, opening any .md file will open the new markdown editor in Visual Studio. To open the preview for the markdown, there is a Preview button at the bottom right of the editor (next to the Line and Column information).
- This experience is a very early preview and we expect much of it to change. If you have feedback on the experience, please join the conversation here on Developer Community.
.NET Productivity
- There is a new Inline Rename UI that allows you to rename a type. Press Ctrl+R,R to bring up the new Inline Rename experience. Notice that the new UI will now show up under the type with an option to rename comments, strings, and symbol files.

- There is now an option to disable Source Link and Embedded source. You can disable this in Tools > Options > Text Editor > C# > Advanced and deselect Enable navigation to Source Link and Embedded sources.


- You can now easily view a file’s structure at a glance in the Document Outline window. The Document Outline window displays the symbol tree of the file in the editor helping you quickly navigate and edit project files. You can open Document Outline by going to View > Other Windows > Document Outline or by using the shortcut Ctrl+Alt+T.

Test tools
- Live Unit Testing now provides a button to reset all state. By going to Test > Live Unit Testing > Reset Live Unit Testing state for solution.

- Live Unit Testing now supports Razor files.
- Run Tests until failure helps you find flaky tests and will run your unit test until they reach a failure or until they reach the threshold set in Options.
- View code coverage report scoped down to only the files/lines you have changed with the new Code Coverage Changeset report.
Performance improvements
We have made performance improvement in the following areas of Visual Studio in this release :
- Find & Replace in Files
- Git branch switching
- Unit Test Performance
- Language service configuration switch optimization
- Responsive File Save
- C++ Indexing
Learn more about all of the performance enhancements in this release.
Visual Studio on Dev Box
- As a Dev Box is not on your local network, you'll need to use a public IP to connect via internet to any Macs on your local network.
- If the Android emulator won't load, ensure Hyper-V is enabled via {insert instructions here}. If the Hyper-V option was not checked off, enable it, then restart the Dev Box before trying to use the emulator.
From Developer Community
- Runtime Text Template behaviour changed in Visual Studio 2022 17.3.x
- Terminal Default Profile Isn't Being Loaded Unless Developer PS Profile Is Deleted
- Visual Studio clears dirty flag before calling OnBeforeSave
- Internal error in UpToDateCheckImplicitConfiguredInputDataSource: ArgumentException: Must not be DateTime.MinValue
- Details for Installed MAUI packages are missing NuGet Project PM UI
- Regression in MFC class CSimpleStringT::CloneData, atlsimpstr.h (atlmfc\include)
- Hot Reload C# things there are changes when there are none
- Task Failed - Activating language client HtmlLanguageClient: HtmlLanguageClient failed to initialize.
- Introduce the ability to roll back a Visual Studio Update
- Easily remove all out-of-support components
- Visual Studio Administrator Template (ADMX/ADML) Preview Feedback
- Intellicode Suggestions sometimes makes it impossible to type code (C#)
Known Issues
See all open issues and available workarounds in Visual Studio 2022 by following the below links.
Feedback and suggestions
We would love to hear from you! You can Report a Problem or Suggest a Feature
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.