Page MenuHomePhabricator

Adding autodetection for Visual Studio 2019
AbandonedPublic

Authored by kuhnel on Jul 2 2020, 1:20 AM.

Details

Reviewers
gkistanova
Summary

The current autodetection from VS2017 does not work with VS2019 as it
requires an additional parameter "-products *". I'm not sure if this
parameter is backwards compatible, so I propose to add a new
"autodetect19" option to be safe here.

See https://github.com/microsoft/vswhere/issues/103 for the bug description.

Event Timeline

kuhnel created this revision.Jul 2 2020, 1:20 AM
kuhnel edited the summary of this revision. (Show Details)

Hello Christian,

This is what I see with the VS 2019 Community Edition:

> "%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe" -latest -property installationPath
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

What kind of Visual Studio 2019 do you have a problem detecting?

@gkistanova I'm using the build-tools only installation (without GUI), as configured in the Dockerfile in D82873.
You should be able to run the commands in a local shell to get the exact same installation.