Forrest logo
back to the vswhere tool

vswhere:tldr:a62a1

vswhere: Find the path of `MSBuild.exe`.
$ vswhere -products * -latest -prerelease -find MSBuild\**\Bin\MSBuild.exe
try on your machine

The "vswhere" command is used to locate the installation of Visual Studio on a Windows machine. Let's break down the provided command:

  • vswhere: This is the command itself, denoting that we want to use the "vswhere" tool.
  • -products *: This flag indicates that we are searching for all available products (versions) of Visual Studio.
  • -latest: This flag tells vswhere to retrieve the latest installed version of Visual Studio.
  • -prerelease: This flag specifies that we want to include pre-release versions in the search.
  • -find MSBuild\**\Bin\MSBuild.exe: This argument instructs vswhere to find the path of the "MSBuild.exe" executable file within the Visual Studio installation directory.

In summary, with this command, vswhere will search for the latest version of Visual Studio (including pre-releases) and return the file path of the "MSBuild.exe" executable within that installation.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vswhere tool