Giter Site home page Giter Site logo

Comments (7)

heaths avatar heaths commented on May 10, 2024

Already fixed in in #85. Please use version 2.1.3 or newer of vswhere.

from vswhere.

Sam13 avatar Sam13 commented on May 10, 2024

As I wrote in my first post: I'm using version 2.1.3

from vswhere.

heaths avatar heaths commented on May 10, 2024

If you look at the issues mentioned by #85 this behavior was intentional since version ranges are not supported without VS2017 or newer installed. Previously I simply ignored the version range, but then callers may get data that does not fit in the version range if VS2017 or newer - which provides the version range handler - is not installed.

from vswhere.

Sam13 avatar Sam13 commented on May 10, 2024

@heaths Thanks, for the clarification. But I still do not get why VS2017 is needed to locate previous versions of VisualStudio...
What's the command line to find specific versions of VisualStudio without having VS2017 is installed?
E.g. 2010 or 2015

from vswhere.

heaths avatar heaths commented on May 10, 2024

It's not. vswhere can locale Visual Studio 10.0 (2010) and newer, but you cannot use the -version parameter because the function that parses it is actually part of the query API introduced in VS2017. You can use -latest and if, say, 14.0 is newest, that will be selected.

In past versions, passing -version without the query API installed would not error but wouldn't do anything, and there were a couple of complaints that if someone, say, specified -version [12.0,14.0] 10.0 - if installed - could get returned. I agreed an error in this case makes more sense, though I designed vswhere to fail as little as possible (i.e. best effort approaches). Better to err than return incorrect data.

Note that vswhere was designed for 15.0 and newer. Supporting 10.0 - with minimal information returned - was bolted on later so developers could change detection scripts to use vswhere exclusively instead of handling registry- vs. query API-based detection separately themselves.

from vswhere.

jvilimek avatar jvilimek commented on May 10, 2024

Hi there. I have VS 15.5.4 installed. when I run vswhere with version
& $vsWhere -version 15 -property displayName
then it returns an error:

Visual Studio Locator version 2.2.11+gf1a9c6c78d
Copyright (C) Microsoft Corporation. All rights reserved.
Error 0x57: The "version" parameter is not supported
All/Latest versions return empty set (i.e. nothing but logo)
what can be wrong?

from vswhere.

heaths avatar heaths commented on May 10, 2024

Please open a new issue in the future. This one is old and resolved.

It appears you don't have the query API registered. Please try repairing Visual Studio.

from vswhere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.