AptLynx

Command-line tool

Visual Studio Locator

winget/Microsoft.VisualStudio.Locator

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Locate Visual Studio 2017 and newer installations.

At a glance

Type
Command-line tool
Install on
Windows
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

winget install --id Microsoft.VisualStudio.Locator -e
scoop install 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\*

Browse

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents