microsoft / vswhere

Locate Visual Studio 2017 and newer installations
MIT License
923 stars 98 forks source link

Add ability to locate Visual Studio Build Tools installations #302

Closed lukaaash closed 1 year ago

lukaaash commented 1 year ago

We don't have Visual Studio installed on our build servers, because Visual Studio Build Tools are sufficient to build our projects and contain all the tools we need. Unfortunately, vswhere doesn't seem to be able to locate VS Build Tools installations, so we have to fall back to a different approach (pretty much equivalent to pre-vswhere days) when running the script on a build server. It would be great if vswhere could be used to locate supported VS Built Tools installation as well.

heaths commented 1 year ago

See pinned issue #130. You have to pass -products *.

rsxdalv commented 1 month ago

I think it's problematic that -all does not mean 'all'.

heaths commented 1 month ago

The usage text says "instances":

  -all           Finds instances in complete, launchable, and incomplete states. By default, only instances
                 in a complete state - no errors or reboot required - are searched.