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
- Visual Studio BuildTools 2017
Fast, declarative, reproducible, and composable developer environments using Nix. c++ c# vs - Microsoft Visual Studio/.NET Log Collection Tool
Microsoft Visual Studio/.NET Log Collection Tool (Windows package; no description in the winget index) - Microsoft Visual Studio Code Insiders
Open-source code editor developer-tools editor - Microsoft Visual Studio Code
Open-source code editor developer-tools editor - Visual Studio Community 2026
Fast, declarative, reproducible, and composable developer environments using Nix. c++ c# vs - Visual Studio Enterprise 2026
Fast, declarative, reproducible, and composable developer environments using Nix. c++ c# vs - Visual Studio Professional 2026
Fast, declarative, reproducible, and composable developer environments using Nix. c++ c# vs - Visual Studio Enterprise 2019
Fast, declarative, reproducible, and composable developer environments using Nix. c++ c# vs
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents