admin管理员组

文章数量:1392047

I have Visual Studio 2022, 17.6.0, and Tools 14.36.32532.

Now on CI agent I need to downgrade (please don't ask for reasons) on 14.35. I tried that with vcvars tool

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build>vcvarsall.bat x86_x64 -vcvars_ver=14.35
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.6.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[ERROR:vcvars.bat] Toolset directory for version '14.35' was not found.

I also tried to install only this VC Tools to 14.35 but it didn't work.

vs_installer.exe modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Professional" 
--add Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.Spectre 
–-add Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.Spectre 
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64

It is of the highest importance that because this is CI pipeline I am able to switch from the cloud agent version to older version (these are cloud machines without direct access to servers, we are using free versions of the GitHub agents). How I can quickly return to some previous version of the VC Tools? Through the terminal not UI.

本文标签: In Visual Studio how to install older version of VC Tools through the terminalStack Overflow