Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Was vswhere.exe supposed to find a "Build tools" install? #61

Closed
brunomlopes opened this issue May 2, 2017 · 7 comments
Closed

Was vswhere.exe supposed to find a "Build tools" install? #61

brunomlopes opened this issue May 2, 2017 · 7 comments
Labels
question Question or support request.

Comments

@brunomlopes
Copy link

On a build agent I installed the "Build tools for Visual Studio 2017" ( taken from https://www.visualstudio.com/downloads/ , under "Other Tools and Frameworks", "Build Tools for Visual Studio 2017" ).

Running vswhere doesn't find that install. Shouldn't it?

PS S:\temp> .\vswhere -latest -requires Microsoft.Component.MSBuild
Visual Studio Locator version 1.0.62 [query version 1.9.77.53636]
Copyright (C) Microsoft Corporation. All rights reserved.

PS S:\temp>

It does find the install for a "legacy" version, if that's relevant:

PS S:\temp> .\vswhere -legacy
Visual Studio Locator version 1.0.62 [query version 1.9.77.53636]
Copyright (C) Microsoft Corporation. All rights reserved.

instanceId: VisualStudio.10.0
installationPath: C:\Program Files (x86)\Microsoft Visual Studio 10.0\
installationVersion: 10.0
PS S:\temp>
@refack
Copy link

refack commented May 2, 2017

As of version 1.0.40 you can add -products * to include Buildtools in the search.
See last paragraph of https://github.com/Microsoft/vswhere/wiki/Find-MSBuild

@heaths
Copy link
Member

heaths commented May 2, 2017

As stated in the usage output and documentation herein, vswhere searches, by default, for Community, Professional, and Enterprise products. Build Tools and other products installed by the new Installer can by found either by passing in a comma-separated list of product IDs to -products or just specifying -products * as @refack mentioned.

@heaths heaths closed this as completed May 2, 2017
@heaths heaths added the question Question or support request. label May 2, 2017
@brunomlopes
Copy link
Author

brunomlopes commented May 3, 2017 via email

@uli-weltersbach
Copy link

Just to be clear, the reason why I'm not seeing any output on our build server is because the build tools were not installed with "the new installer"?
If so, what is "the new installer"?
vswhere exe and msbuild tools

@brunomlopes
Copy link
Author

brunomlopes commented May 31, 2017 via email

@uli-weltersbach
Copy link

uli-weltersbach commented May 31, 2017

Thanks for the quick response, but that still doesn't do the trick.
When using the "-legacy" flag I get a path to an old VS2012 installation, but still no luck on e.g. "C:\Program Files (x86)\MSBuild\14.0" :|

@heaths
Copy link
Member

heaths commented May 31, 2017

Because that is not a VS path. MSBuild was located under Visual Studio starting with 2017. It was in the same place under %ProgramFiles(x86)%\MSBuild before that. There are other ways to find MSBuild prior to 2017 that are outside the scope and purpose of vswhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or support request.
Projects
None yet
Development

No branches or pull requests

4 participants