tldr/pages/windows/vswhere.md

21 lines
670 B
Markdown
Raw Normal View History

2021-11-28 12:10:53 +00:00
# vswhere
> Locate Visual Studio 2017 and newer installations.
> More information: <https://github.com/microsoft/vswhere>.
- Find the path of vcvarsall.bat to set environment variables:
`vswhere -products * -latest -prerelease -find **/VC/Auxiliary/Build/vcvarsall.bat`
2021-11-28 12:10:53 +00:00
- Find the directory of the x64 MSVC compiler (cl.exe, etc):
`vswhere -products * -latest -prerelease -find **/Hostx64/x64/*`
- Find the directory of Clang bundled with Visual Studio bundled (clang-cl, clang-tidy, etc):
`vswhere -products * -latest -prerelease -find **/Llvm/bin/*`
- Find the path of `MSBuild.exe`:
`vswhere -products * -latest -prerelease -find MSBuild/**/Bin/MSBuild.exe`