Comments (7)
Already fixed in in #85. Please use version 2.1.3 or newer of vswhere.
from vswhere.
As I wrote in my first post: I'm using version 2.1.3
from vswhere.
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.
@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.
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.
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.
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)
- `-requires` wildcard HOT 9
- Cannot locate msbuild on ARM64 installations HOT 2
- Publish winget package from publishing pipeline HOT 1
- Wiki documentation does not detect VSTest fom Build Tools HOT 1
- vswhere cannot find v17.5.0-pre.5.0 Build Tools on Arm64 device with -prerelease option HOT 2
- Can we get an example in the wiki of selecting a specific version of VS? HOT 3
- No detecting the installation of Remote Tools for Visual Studio HOT 1
- -find returns unexpected results HOT 1
- vswhere.exe problem HOT 3
- VS Buildtools 2022 17.7 not detected HOT 1
- -path is only for selection, not specifying a copied Visual Studio HOT 1
- Range Detection Issue HOT 1
- too much code HOT 1
- How do I find Visual Studio by year? HOT 2
- vswhere could not detect VS2022 HOT 7
- Add ability to locate Visual Studio Build Tools installations HOT 1
- -version doesn't support pre-release suffixes HOT 3
- WARNING: Failed to activate VS environment: Could not parse vswhere.exe output HOT 1
- Provide a 64bits executable HOT 1
- One of my office PC fails to find MSVC when not running in elevated terminal. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vswhere.