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
Visual Studio 2022 version 17.2
Support Timeframe
Enterprise and Professional users of Visual Studio 2022 version 17.2 who are configured to receive updates on the 17.2 LTSC channel are supported and will receive fixes to security vulnerabilities through January 2024. For more information about Visual Studio supported baselines, please review the Support Policy for Visual Studio 2022.
Click one of the buttons below to download the most secure release of Visual Studio 2022 version 17.2 from the 17.2 LTSC channel. Additional 17.2 LTSC products can be found on the Visual Studio Subscriptions site.
The Visual Studio Community edition is supported only on the Current Channel with the latest servicing release of the latest minor version of Visual Studio.
Visit the Visual Studio site to access links for the most current versions of the Visual Studio 2022 products. For instructions on installing and updating Visual Studio 2022, refer to Update Visual Studio 2022 to the most recent release. The Visual Studio Administrator's Guide contains guidance for how to deploy Visual Studio across your organization.
Visual Studio 2022 version 17.2 Releases
- January 9, 2024 — Visual Studio 2022 version 17.2.23
- November 14, 2023 — Visual Studio 2022 version 17.2.22
- October 24, 2023 — Visual Studio 2022 version 17.2.21
- October 10, 2023 — Visual Studio 2022 version 17.2.20
- September 12, 2023 — Visual Studio 2022 version 17.2.19
- August 8, 2023 — Visual Studio 2022 version 17.2.18
- July 11, 2023 — Visual Studio 2022 version 17.2.17
- June 13, 2023 — Visual Studio 2022 version 17.2.16
- April 11, 2023 — Visual Studio 2022 version 17.2.15
- March 14, 2023 — Visual Studio 2022 version 17.2.14
- February 14, 2023 — Visual Studio 2022 version 17.2.13
- January 10, 2023 — Visual Studio 2022 version 17.2.12
- December 13, 2022 — Visual Studio 2022 version 17.2.11
- November 8, 2022 — Visual Studio 2022 version 17.2.10
- October 11, 2022 — Visual Studio 2022 version 17.2.9
- September 13, 2022 — Visual Studio 2022 version 17.2.8
- August 9, 2022 — Visual Studio 2022 version 17.2.7
- July 12, 2022 — Visual Studio 2022 version 17.2.6
- June 22, 2022 — Visual Studio 2022 version 17.2.5
- June 14, 2022 — Visual Studio 2022 version 17.2.4
- May 31, 2022 — Visual Studio 2022 version 17.2.3
- May 24, 2022 — Visual Studio 2022 version 17.2.2
- May 17, 2022 — Visual Studio 2022 version 17.2.1
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 version 17.2 is now available!
- Visual Studio 2022 version 17.1 is Available Today!
- Visual Studio 2022 version 17.0 is Available Today!
Visual Studio 2022 Archived Release Notes
Visual Studio 2022 version 17.2.23
released Jan 9th, 2024
Issues Addressed in this release of 17.2.23
- Updated MinGit to v2.43.0.1 which comes with OpenSSL v3.1.4 and addresses a regression where network operations were really slow under certain circumstances.
Security Advisories Addressed
- CVE-2024-20656 A vulnerability exists in the VSStandardCollectorService150 service, where local attackers can escalate privileges on hosts where an affected installation of Microsoft Visual Studio is running.
- CVE-2023-32027 This advisory is republished to address a Microsoft ODBC Driver for SQL Server Remote Code Execution vulnerability in Visual Studio.
- CVE-2023-32025 This advisory is republished to address a Microsoft ODBC Driver for SQL Server Remote Code Execution vulnerability in Visual Studio.
- CVE-2023-32026 This advisory is republished to address a Microsoft ODBC Driver for SQL Server Remote Code Execution vulnerability in Visual Studio.
- CVE-2023-29356 This advisory is republished to address a Microsoft ODBC Driver for SQL Server Remote Code Execution vulnerability in Visual Studio.
- CVE-2023-32028 This advisory is republished to address a Microsoft SQL OLE DB Remote Code Execution vulnerability in Visual Studio.
- CVE-2023-29349 This advisory is republished to address a Microsoft ODBC and OLE DB Remote Code Execution vulnerability in Visual Studio.
- CVE-2024-0057 A security feature bypass vulnerability exists when Microsoft .NET Framework-based applications use X.509 chain building APIs but do not completely validate the X.509 certificate due to a logic flaw.
- CVE-2024-0056 A vulnerability exists in the Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data provider where an attacker can perform an interception attack (sometimes called a MITM, or man-in-the-middle, attack) between the SQL client and the SQL server.
- CVE-2024-21319 Microsoft is releasing this security advisory to provide information about a vulnerability in the ASP.NET Core project templates.
Visual Studio 2022 version 17.2.22
released Nov 14th, 2023
Issues Addressed in this release of 17.2.22
Security Advisories Addressed
- CVE-2023-36038 A vulnerability exists in ASP.NET IIS where a remote unauthenticated user can issue specially crafted requests to a .NET application which may result in denial of service.
- CVE-2023-36049 An elevation of privilege vulnerability exists in .NET where untrusted URIs provided to System.Net.WebRequest.Create can be used to inject arbitrary commands to backend FTP servers.
- CVE-2023-36558 A security feature bypass vulnerability exists in ASP.NET where an unauthenticated user is able to bypass validation on blazor server forms which could trigger unintended actions.
- CVE-2023-36042 A denial of service vulnerability exists in Visual Studio where a malformed decorated name can result in an infinite loop.
Visual Studio 2022 version 17.2.21
released Oct 24th, 2023
Issues Addressed in this release of 17.2.21
Security Advisories Republished
- CVE-2023-36799 A vulnerability exists in .NET where reading a maliciously crafted X.509 certificate may result in Denial of Service. This issue only affects Linux systems.
- CVE-2023-36796This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36794This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36793This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36792This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
Visual Studio 2022 version 17.2.20
released Oct 10th, 2023
Issues Addressed in this release of 17.2.20
- MSVC v143 C++ build tools option v14.32-17.2 now install the correct version of app local redistributable binaries.
- Microsoft is aware of a vulnerability where there is a possibility of SMTP address injection that can happen in the SmtpClient class. This corresponds to CVE-2022-26893 (not a published CVE as the vulnerability is assessed as medium).
Security Advisories Addressed
- CVE-2023-36435 A memory leak vulnerability exists in MsQuic.dll which may lead to Denial of Service. This issue only affects Windows systems.
- CVE-2023-38171 A null pointer vulnerability exists in MsQuic.dll which may lead to Denial of Service. This issue only affects Windows systems.
- CVE-2023-44487 A vulnerability exists in the ASP.NET Core Kestrel web server where a malicious client may flood the server with specially crafted HTTP/2 requests, causing denial of service.
Visual Studio 2022 version 17.2.19
released Sep 12th, 2023
Issues Addressed in this release of 17.2.19
- Updated version of Git used by Visual Studio to v 2.41.0.3.
- Microsoft is aware of a vulnerability where there is a possibility of SMTP address injection that can happen in the SmtpClient class. This corresponds to CVE-2022-26893 (not a published CVE as the vulnerability is assessed as medium).
Security Advisories Addressed
- CVE-2023-36799 A vulnerability exists in .NET where reading a maliciously crafted X.509 certificate may result in Denial of Service. This issue only affects Linux systems.
- CVE-2023-36796This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36794This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36793This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36792This security update addresses a vulnerability in DiaSymReader.dll when reading a corrupted PDB file which can lead to Remote Code Execution.
- CVE-2023-36759This security update removes pgodriver.sys, where reading a malicious file can lead to Elevation of Privilege.
Visual Studio 2022 version 17.2.18
released Aug 8th, 2023
Issues Addressed in this release of 17.2.18
- Microsoft is aware of a vulnerability where there is a possibility of SMTP address injection that can happen in the SmtpClient class. This corresponds to CVE-2022-26893 (not a published CVE as the vulnerability is assessed as medium).
- Addressed an issue where VSWhere's all switch would not return instances in an un-launchable state.
Security Advisories Addressed
- CVE-2023-35390 * CVE-2023-35390 A vulnerability exists when some dotnet commands are used in directories with weaker permissions which can result in remote code execution.
- CVE-2023-38180 A vulnerability exists in Kestrel where, on detecting a potentially malicious client, Kestrel will sometimes fail to disconnect it, resulting in denial of service.
- CVE-2023-35391 A vulnerability exists in ASP.NET Core 2.1, .NET 7.0 and, .NET 6.0 applications using SignalR when redis backplane use might result in information disclosure.
- CVE-2023-36897 Visual Studio 2010 Tools for Office Runtime Spoofing Vulnerability This security update addresses a vulnerability where unauthenticated remote attacker can sign VSTO Add-ins deployments without a valid code signing certificate.
Visual Studio 2022 version 17.2.17
released July 11th, 2023
Issues Addressed in this release of 17.2.17
Security Advisories Addressed
- CVE-2023-33127 .NET Remote Code Execution Vulnerability A vulnerability exists in .NET applications where the diagnostic server can be exploited to achieve cross-session/cross-user elevation of privilege (EoP) and code execution.
- CVE-2023-33170 .NET Security Feature Bypass Vulnerability A vulnerability exist in ASP.NET Core applications where account lockout maximum failed attempts may not be immediately updated, allowing an attacker to try more passwords.
Visual Studio 2022 version 17.2.16
released June 13th, 2023
Issues Addressed in this release of 17.2.16
Security Advisories Addressed
- CVE-2023-24897 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability in the MSDIA SDK where corrupted PDBs can cause heap overflow, leading to a crash or remote code execution.
- CVE-2023-25652 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability where specially crafted input to git apply –reject can lead to controlled content writes at arbitrary locations.
- CVE-2023-25815 Visual Studio Spoofing Vulnerability This security update addresses a vulnerability where Github localization messages refer to a hard-coded path instead of respecting the runtime prefix that leads to out-of-bound memory writes and crashes.
- CVE-2023-29007 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability in which a configuration file containing a logic error results in arbitrary configuration injection.
- CVE-2023-29011 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability in which the Git for Windows executable responsible for implementing a SOCKS5 proxy is susceptible to picking up an untrusted configuration on multi-user machines.
- CVE-2023-29012 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability in which the Git for Windows Git CMD program incorrectly searches for a program upon startup, leading to silent arbitrary code execution.
- CVE-2023-27909 Visual Studio Remote Code Execution Vulnerability This security update addresses an Out-Of-Bounds Write Vulnerability in Autodesk® FBX® SDK where version 2020 or prior may lead to code execution through maliciously crafted FBX files or information disclosure.
- CVE-2023-27910 Visual Studio Information Disclosure Vulnerability This security update addresses a vulnerability where a user may be tricked into opening a malicious FBX file that may exploit a stack buffer overflow vulnerability in Autodesk® FBX® SDK 2020 or prior which may lead to remote code execution.
- CVE-2023-27911 Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability where a user may be tricked into opening a malicious FBX file that may exploit a heap buffer overflow vulnerability in Autodesk® FBX® SDK 2020 or prior which may lead to remote code execution.
- CVE-2023-33139 Visual Studio Information Disclosure Vulnerability This security update addresses a OOB vulnerability where the obj file parser in Visual Studios leads to information disclosure.
- CVE-2023-29331 .NET and Visual Studio Denial of Service Vulnerability This security update addresses a vulnerability where the AIA fetching process for client certificates can lead to denial of service.
- CVE-2023-24895 .NET and Visual Studio Remote Code Execution Vulnerability This security update addresses a vulnerability in the WPF XAML parser where an unsandboxed parser can lead to remote code execution.
- CVE-2023-24936 .NET and Visual Studio Elevation of Privilege Vulnerability This security update addresses a vulnerability in bypass restrictions when deserializing a DataSet or DataTable from XML, leading to an elevation of privilege.
- CVE-2023-32032 .NET Elevation of Privilege Vulnerability A vulnerability exists in .NET using extracting the contents of a Tar file which may result in elevation of privileges.
- CVE-2023-33126 .NET Remote Code Execution Vulnerability A vulnerability exists in .NET during crash and stack trace scenarios that could lead to loading arbitrary bin
- CVE-2023-33128 .NET Remote Code Execution Vulnerability A vulnerability exists in .NET source generator for P/Invokes that can lead to generated code freeing uninitialized memory and crashing.
- CVE-2023-33135 .NET Remote Code Execution Vulnerability A vulnerability exists in the .NET SDK during tool restore which can lead to an elevation of privilege.
Visual Studio 2022 version 17.2.15
released April 11th, 2023
Issues Addressed in this release of 17.2.15
- Fixes a crash when invalid input is sent to the driver used during PGO training for kernel mode drivers.
- Fixed an issue in IIS Express that could cause a crash when updating telemetry data.
Developer Community
Security Advisories Addressed
- CVE-2023-28260 .NET Remote Code Execution Vulnerability A vulnerability exists in .NET running on Windows where a runtime DLL can be loaded from an unexpected location, resulting in remote code execution.
- CVE-2023-28296 Visual Studio Remote Code Execution Vulnerability
- CVE-2023-28299 Visual Studio Spoofing Vulnerability
- CVE-2023-28262 Visual Studio Elevation of Privilege Vulnerability
- CVE-2023-28263 Visual Studio Information Disclosure Vulnerability
Visual Studio 2022 version 17.2.14
released March 14th, 2023
Issues Addressed in this release of 17.2.14
- Git 2.39 has renamed the value for credential.helper from "manager-core" to "manager". See https://aka.ms/gcm/rename for more information.
- Updates to mingit and Git for Windows package to v2.39.2, which addresses CVE-2023-22490
Security Advisories Addressed
- CVE-2023-22490 Mingit Remote Code Execution Vulnerability
- CVE-2023-22743 Git for Windows Installer Elevation of Privilege Vulnerability
- CVE-2023-23618 Git for Windows Remote Code Execution Vulnerability
- CVE-2023-23946 Mingit Remote Code Execution Vulnerability
Visual Studio 2022 version 17.2.13
released February 14th, 2023
Issues Addressed in this release of 17.2.13
- Updated CPython interpreter to version 3.9.13.
- Updated mingit and Git for Windows package to v2.39.1.1, which addresses CVE-2022-41903
Security Advisories Addressed
- CVE-2023-21566 Visual Studio Installer Elevation of Privilege Vulnerability
- CVE-2023-21567 Visual Studio Denial of Service Vulnerability
- CVE-2023-21808 .NET and Visual Studio Remote Code Execution Vulnerability
- CVE-2023-21815 Visual Studio Remote Code Execution Vulnerability
- CVE-2023-23381 Visual Studio Code Remote Code Execution Vulnerability
- CVE-2022-23521 gitattributes parsing integer overflow
- CVE-2022-41903 Heap overflow in
git archive
,git log --format
leading to RCE - CVE-2022-41953 Git GUI Clone Remote Code Execution Vulnerability
Visual Studio 2022 version 17.2.12
released January 10th, 2023
Security Advisories Addressed
- CVE-2023-21538 .NET Denial of Service Vulnerability A denial of service vulnerability exists in .NET 6.0 where a malicious client could cause a stack overflow which may result in a denial of service attack when an attacker sends an invalid request to an exposed endpoint.
Visual Studio 2022 version 17.2.11
released December 13th, 2022
Security Advisories Addressed
- CVE-2022-41089 Remote Code Execution A remote code execution vulnerability exists in .NET Core 3.1, .NET 6.0, and .NET 7.0, where a malicious actor could cause a user to run arbitrary code as a result of parsing maliciously crafted xps files.
Visual Studio 2022 version 17.2.10
released November 8th, 2022
Security Advisories Addressed
- CVE-2022-41119 Remote Code Execution Heap Overflow Vulnerbaility in Visual Studio
- CVE-2022-39253 Information Disclosure Local clone optimization dereferences symbolic links by default
Visual Studio 2022 version 17.2.9
released October 11, 2022
Issues Addressed in this release of 17.2.9
- Administrators will be able to update the VS Installer on an offline client machine from a layout without updating VS.
Security Advisories Addressed
- CVE-2022-41032 .NET Elevation of Privilege Vulnerability A vulnerability exists in .NET 7.0.0-rc.1, .NET 6.0, .NET Core 3.1, and NuGet clients (NuGet.exe, NuGet.Commands, NuGet.CommandLine, NuGet.Protocol) where a malicious actor could cause a user to execute arbitrary code.
Visual Studio 2022 version 17.2.8
released September 13, 2022
Issues Addressed in this release of 17.2.8
From Developer Community
- Compiler warnings after upgrading to 17.2.0 (C4311)
- Latest Update of VS2022 prevents the building of Hololens apps in Release mode
- VsixSignTool fails in pipeline with error code 80070020. What does it mean?
Security Advisories Addressed
CVE-2022-38013 .NET Denial of Service Vulnerability A denial of service vulnerability exists in ASP.NET Core 3.1 and .NET 6.0 where a malicious client could cause a stack overflow which may result in a denial of service attack when an attacker sends a customized payload that is parsed during model binding.
Visual Studio 2022 version 17.2.7
released August 9, 2022
Issues Addressed in this release of 17.2.7
- Updated the side-by-side 16.11 C++ toolset to version 14.29.30146.00
- Complement fix for Git Error after 17.1.4 update - Visual Studio Feedback, by respecting repos previously marked as safe (instead of overwriting).
- Updates MinGit to version 2.37.1.1 to address CVE - CVE-2022-29187 (mitre.org), which exposed users to a vulnerability where navigating to a repository they own but that other user can write to could be exploited to run malicious code.
- Updates Git for Windows to v2.37.1.1 addressing CVE-2022-31012.
- Fixed an issue where the default terminal profile would start and quickly close. If the issue persists, restoring your profiles to the default set should fix the issue.
From Developer Community
- Internal compiler error when building UnrealEngine4.27.2
- Strange linker error related to EXP+ building ARM64EC binary
- LINK : fatal error LNK1000: Internal error during IMAGE::ResolveEntryPoint
- Compile Errors Appearing with the New Version
- Visual distinction between downloaded/not downloaded items is awful in Source Control Explorer
Security Advisories Addressed
- CVE-2022-34716 .NET Spoofing Vulnerability External Entity Injection during XML signature verification
- CVE-2022-31012 Remote Code Execution Git for Windows' installer can be tricked into executing an untrusted binary
- CVE-2022-29187 Elevation of Privilege Malicious users can create a .git directory in a folder that is owned by a super-user
- CVE-2022-35777 Remote Code Execution Visual Studio 2022 Preview Fbx File parser Heap overflow Vulnerability
- CVE-2022-35825 Remote Code Execution Visual Studio 2022 Preview Fbx File parser OOBW Vulnerability
- CVE-2022-35826 Remote Code Execution Visual Studio 2022 Preview Fbx File parser Heap overflow Vulnerability
- CVE-2022-35827 Remote Code Execution Visual Studio 2022 Preview Fbx File parser Heap OOBW Vulnerability
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
- Performance Profiler is not working due to two different-versioned Sytem.Data.SQLite.dll
- Build doesn't interrupt after build error in Web Site project
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
- Managed C++ breaks on macro expansion with template deducing casts additional fix
- error LNK2016: absolute symbol '@comp.id' used as target of REL32 relocation in section 0x9
- "CL.exe" exited with code -1073740791
- __imp___std_init_once_complete unresolved external symbol after linking msvcprtd.lib
- fatal error LNK1103: debugging information corrupt; recompile module
- An MFC App Crashes on second run.
- Designer fails when using MVVMLightLibs in VS2022
- Visual Studio 2022 Professional is no longer useable after installing the Visual Studio Installer Project Extension
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 Visual Studio 2019 version 16.11.14 release notes
- 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
- Zero unit tests code coverage after updating VS 2022 tools to 17.2
- Fixed an issue when the HostPath package fails with exit code 259, the exit code will be suppressed and reported as a warning, allowing Visual Studio setup to complete
Security Advisories Addressed
- CVE-2022-30184 .NET Information Disclosure Vulnerability A vulnerability exists in .NET 6.0 and .NET Core 3.1 within NuGet where a credential leak can occur.
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
- Task Failed - Activating language client HtmlLanguageClient. VS 17.2.0.
- Find In Files stopped working - The JSON-RPC connection with the remote party was lost before the request could complete
- VS Tools for Unity: All Opened Files Get Closed When Saving
- Visual Studio 2022 freezes when attempting source download to step into external library
- VS 2022 ships outdated Azurite version
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
- iOS simulator black screen
- GetSccFiles must be called on the UI thread
- 17.2.0 no longer processes MsBuild variable values used in launchSettings.json
- Visual Studio 2022 17.2.0 doesn't work with DirectX-Graphics-Samples repo
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
- Managed C++ breaks on macro expansion with template deducing casts
- MFC inconsistent annotations: C28301: No annotations for first declaration of 'GetThisDispatchMap'
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.
- 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.
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
- Added support for column-level encryption in SQL projects targeting in Azure Synapse Analytics.
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<T> 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<T> collections where T can be simple types or complex types like dictionaries, encapsulated.
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.
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
- CancellationToken's delay ignored in Xamarin.Android while using HttpClient
- If I open a solution and then build it, and then expand test explorer I expect to see the tests in the list
- Test explorer stuck "running" test
- Error: Value cannot be null. Parameter name: path1
- FO Bug Fix aaaaaaaaaaaaaaaaa
- There is a syntax error with the code hint for Intellicode
- Stack Traces with depth between 21 and 23 in Test Explorer
- x:Class Modifier in ResourceDictionary breaks auto completion support in VS when deployed as nuget package
- WPF hot reload not available/working for one solution while it is for another one
- Xamarin HotReload Caught exception in OnAfterSave
- Go To Definition not working (but Peek Definition works)
- Trying to open test log fails with file path too long
- clang v13 ICE with /arch:AVX2
- VS 2022 Hangs on Add new Item
- "Show in Test Explorer" doesn't scroll the test case into view when the Test Explorer view is in "auto hide" mode
HasSharedItems
is explicitly set to empty by VS causingAssignLinkMetadata
to be skipped and fail shared projects builds- German translation: Buttons overlapping in hot reload message box
- Publish: Unable to create publish profile Properties\PublishProfiles\AppService.pubxml
- Tool crashes when using on a specific binary
- 'git' is not recognized as an internal or external command, operable program or batch file.
- Solution Loading Gives Error and Stops since 17.2 Preview 2
- Property Window for XAML file for Xamarin Project is showing blank
- Error LNK2013: BRANCH26 fixup overflow while linking ARM64EC binary
- Compiler process gets stuck in infinite loop at 100% CPU load
- ICE for variantclear analysis with pch in compiler version 17.2p2 (Office; 17.2)
- Xamarin Visual Studio 2022: There was an error while loading your certificates
- Internal compiler error in VS2022 17.2 preview2 targeting ARM
- VS2022 XAML designer does not work when CopyLocal is false
- Vulkan.hpp makes Intellisense slow in Visual Studio 2022
- Bug when CMakeLists.txt in sub-directories (Unable to select CMakeLists.txt in root-folder)
- ENC errors persist after successful build
- SSDT schema compare fails for Azure SQL Managed Instance
- NET MAUI iOS builds fail because Mac Agent does not install up to date MonoToolchain and emsdk workload manifests
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 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.