From 21e03e63f51b8797a93971fa70676aa32fd67554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Fri, 3 Jan 2020 07:17:56 +0100 Subject: [PATCH] Cap version of VS to <16.0 (#2285) --- scripts/build.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index c8fcf5f00b..a3b79daaa3 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -796,13 +796,13 @@ function Locate-VsInstallPath Try { - Write-Verbose "VSWhere command line: $vswhere -latest -prerelease -products * -requires $requiredPackageIds -property installationPath" + Write-Verbose "VSWhere command line: $vswhere -version '(15.0,16.0]' -prerelease -products * -requires $requiredPackageIds -property installationPath" if ($TPB_CIBuild) { - $vsInstallPath = & $vswhere -latest -products * -requires $requiredPackageIds -property installationPath + $vsInstallPath = & $vswhere -version '(15.0,16.0]' -products * -requires $requiredPackageIds -property installationPath } else { # Allow using pre release versions of VS for dev builds - $vsInstallPath = & $vswhere -latest -prerelease -products * -requires $requiredPackageIds -property installationPath + $vsInstallPath = & $vswhere -version '(15.0,16.0]' -prerelease -products * -requires $requiredPackageIds -property installationPath } } Catch [System.Management.Automation.MethodInvocationException]