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

Not compatible with older versions? #24

Closed
poke opened this issue Mar 3, 2017 · 5 comments
Closed

Not compatible with older versions? #24

poke opened this issue Mar 3, 2017 · 5 comments
Labels
enhancement Feature request.

Comments

@poke
Copy link

poke commented Mar 3, 2017

I was hoping that I could rely on this tool to find any version of Visual Studio. But apparently it only works with the Visual Studio 2017 (probably and later) but not with e.g. Visual Studio 2015.

It would be cool if there was some legacy detection so that this tool could be used as a single utility to find installed Visual Studio versions—regardless of whether they are new or old.

@heaths
Copy link
Member

heaths commented Mar 3, 2017

Thanks for the feedback. It had been a consideration but almost none of the other parameters (specifically -requires and partly -products that would need a mapping) would make sense and may give unexpected results. It's recommended to use the old registry detection.

That said, I'd be interested in your scenario. We haven't closed the door in this and understanding how people might use or would help.

@poke
Copy link
Author

poke commented Mar 3, 2017

I understand that it would only have a reduced utility compared to VS2017. However, I was hoping that vswhere could be used as a single query tool without having to add hardcoded registry checks just in case an old version is still present.

In particular, vswhere was brought up in a discussion for the Rust compiler which uses the VC linker. Finding an installed Visual Studio version is a non-trivial part of the compile process right now, so moving that complexity to another tool that “just works” would be great here.

Btw. are there any plans to ship this tool with Visual Studio, so that one can depend on it to exist (when there is a compatible version of VS installed anywhere), or are we supposed to bundle this tool into our applications when we need this detection?

@heaths
Copy link
Member

heaths commented Mar 3, 2017

We are discussing shipping it, but not for RTW and have no definite plans otherwise, so you might considering either redist'ing it or downloading as needed. I'm also adding support for both a NuGet package and a Chocolatey package (same package, actually) for added ease of acquisition.

@JFLarvoire
Copy link

+1 for this request: I'm also maintaining a library that strives to be compatible with all versions of Visual Studio. Finding them is indeed difficult and slow now. And VS 2017 just broke the script that did it.
Being able to rely on vswhere for all of them would be great!

heaths added a commit that referenced this issue Mar 10, 2017
heaths added a commit that referenced this issue Mar 10, 2017
heaths added a commit that referenced this issue Mar 10, 2017
@heaths
Copy link
Member

heaths commented Mar 10, 2017

This will be fixed in the next release.

@heaths heaths closed this as completed Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request.
Projects
None yet
Development

No branches or pull requests

3 participants