用户是否可以在安装visual studio时自定义下面的vswhere.exe路径?
Microsoft:\Program Files (X86)\
Studio\Installer\vswhere.exe
询问此查询的原因是,我使用vswhere exe在我的项目中查找VS2017 & 19安装路径。
"VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
建议使用任何其他方法查找Vswhere exe路径。
发布于 2019-06-20 08:21:13
来自微软( https://github.com/Microsoft/vswhere/wiki/Installing ):
从Visual Studio15.2 (26418.1预览版)开始的
vswhere.exe
安装在
%ProgramFiles(x86)%\Microsoft Visual Studio\Installer
。
(在Windows10之前的32位程序中使用%ProgramFiles%
)。
这是一个将被维护的固定位置。
这意味着无论用户在Visual Studio安装程序或MSBuild工具安装程序上选择什么选项,vswhere都将位于%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe
。
请注意,如果您使用Chocolatey
(而不是VS/MSBuild安装程序)安装vswhere
,它将位于%ProgramData%\chocolatey\lib\vswhere\tools\vswhere.exe
https://stackoverflow.com/questions/54305638
复制相似问题