1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 21:15:32 +02:00

vswhere: add page (#7436)

This commit is contained in:
Amin Yahyaabadi 2021-11-28 06:10:53 -06:00 committed by GitHub
parent 32b262e7d5
commit 5741d4dcf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/windows/vswhere.md Normal file
View file

@ -0,0 +1,20 @@
# 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"`
- 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`