From 0fe719a5479076581a140fdbf003a8a45ac5a7a4 Mon Sep 17 00:00:00 2001 From: MF Date: Thu, 25 Jun 2020 22:58:33 +0100 Subject: [PATCH] Added -products argument to vswhere --- bootstrap.ps1 | 2 +- src/conf.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 7215d42..0209a75 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -1,4 +1,4 @@ -$installationPath = .\third-party\bin\vswhere.exe -nologo -prerelease -latest -property installationPath +$installationPath = .\third-party\bin\vswhere.exe -products * -nologo -prerelease -latest -property installationPath if (! $?) { Write-Error "vswhere returned $LastExitCode" exit $LastExitCode diff --git a/src/conf.cpp b/src/conf.cpp index 80972b2..e5310fe 100644 --- a/src/conf.cpp +++ b/src/conf.cpp @@ -592,6 +592,7 @@ fs::path find_vs() auto p = process() .binary(vs::vswhere()) + .arg("-products", "*") .arg("-prerelease") .arg("-version", vs::version()) .arg("-property", "installationPath")