vswhere Command Examples

Locate Visual Studio 2017 and newer installations. More information: https://github.com/microsoft/vswhere.

vswhere -products * -latest -prerelease -find **\VC\Auxiliary\Build\vcvarsall.bat

vswhere -products * -latest -prerelease -find **\Hostx64\x64\*

vswhere -products * -latest -prerelease -find **\Llvm\bin\*

vswhere -products * -latest -prerelease -find MSBuild\**\Bin\MSBuild.exe