Files
tldr/pages.zh/windows/vswhere.md

20 lines
659 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vswhere
> 查找 Visual Studio 2017 及更高版本的安装。
> 更多信息:<https://github.com/microsoft/vswhere>。
- 查找 vcvarsall.bat 的路径以设置环境变量:
`vswhere -products * -latest -prerelease -find **\VC\Auxiliary\Build\vcvarsall.bat`
- 查找 x64 MSVC 编译器cl.exe 等)的目录:
`vswhere -products * -latest -prerelease -find **\Hostx64\x64\*`
- 查找与 Visual Studio 一起捆绑的 Clangclang-cl、clang-tidy 等)的目录:
`vswhere -products * -latest -prerelease -find **\Llvm\bin\*`
- 查找 `MSBuild.exe` 的路径:
`vswhere -products * -latest -prerelease -find MSBuild\**\Bin\MSBuild.exe`