From 5741d4dcf61b89a940793527ce0e2a278e13bc9b Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 28 Nov 2021 06:10:53 -0600 Subject: [PATCH] vswhere: add page (#7436) --- pages/windows/vswhere.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/windows/vswhere.md diff --git a/pages/windows/vswhere.md b/pages/windows/vswhere.md new file mode 100644 index 000000000..3a75978a4 --- /dev/null +++ b/pages/windows/vswhere.md @@ -0,0 +1,20 @@ +# vswhere + +> Locate Visual Studio 2017 and newer installations. +> More information: . + +- 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`