microsoft / vswhere

Locate Visual Studio 2017 and newer installations
MIT License
921 stars 97 forks source link

Wiki documentation does not detect VSTest fom Build Tools #285

Closed davisnw closed 1 year ago

davisnw commented 1 year ago

https://github.com/microsoft/vswhere/wiki/Find-VSTest gives the following snippet

vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.Web -requiresAny -property installationPath

However, for e.g. build server where Visual Studio Build Tools is installed, you need to additionally check

e.g.

vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools Microsoft.VisualStudio.Workload.Web Microsoft.VisualStudio.Workload.WebBuildTools -requiresAny -property installationPath

Consider adding docs with notes for build tools, or finding a more generic means of locating VSTest.

Note that https://github.com/microsoft/vswhere/wiki/Find-MSBuild works for both Visual Studio and Visual Studio Build Tools installations.

heaths commented 1 year ago

Thank you for letting us know. I'll make the changes to the wiki. Normally workload and component IDs don't change, but it happens occasionally