Skip to content

Conversation

@rainersigwald
Copy link
Member

For prereleases, the Visual Studio command prompt sets the environment
variable VSCMD_VER to a value like 15.7.0-pre.3.0, which is not
parseable by System.Version.

This could be handled by using a version parser that can handle this
SemVer 2 version as well as Windows 4-part versions, but that would be
another dependency, so I just special-cased the problematic dash.

For prereleases, the Visual Studio command prompt sets the environment
variable `VSCMD_VER` to a value like `15.7.0-pre.3.0`, which is not
parseable by System.Version.

This could be handled by using a version parser that can handle this
SemVer 2 version as well as Windows 4-part versions, but that would be
another dependency, so I just special-cased the problematic dash.
@rainersigwald
Copy link
Member Author

example before:

Sample MSBuild Builder App 1.0.15+g18a79eb502.

1) DEVCONSOLE - 15.0 (Recommended!)
2) Visual Studio Enterprise 2017 - 15.7.27617.1
3) Visual Studio Enterprise 2017 - 15.0.26228.4

after:

Sample MSBuild Builder App 1.0.14+g459ba6b7dd.

1) DEVCONSOLE - 15.7.0 (Recommended!)
2) Visual Studio Enterprise 2017 - 15.7.27617.1
3) Visual Studio Enterprise 2017 - 15.0.26228.4

@AndyGerlicher AndyGerlicher merged commit 526eb0a into microsoft:master Apr 25, 2018
@rainersigwald rainersigwald deleted the preview-devconsole-version branch April 25, 2018 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants