From 482287170ef8302a10156c5ded6afd7ebfa12d9b Mon Sep 17 00:00:00 2001 From: pieths Date: Wed, 3 Jul 2019 13:39:43 -0700 Subject: [PATCH] Revert change b5eb9376dd14da606e91f7f94f1bec7b7609a7a1 to see if it (#168) fixes the signed build issue. --- build.cmd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.cmd b/build.cmd index c443fee6..31c81d1b 100644 --- a/build.cmd +++ b/build.cmd @@ -201,12 +201,9 @@ echo "#################################" :: Setting native code build environment echo Setting native build environment ... set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -set vswhereOutputFile=vswhereOutput.tmp if exist %_VSWHERE% ( - %_VSWHERE% -version "[15.0,16.0)" -latest -prerelease -property installationPath > %vswhereOutputFile% - for /f "tokens=* delims=" %%i in (%vswhereOutputFile%) do set _VSCOMNTOOLS=%%i\Common7\Tools - del %vswhereOutputFile% + for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS% if not exist "%_VSCOMNTOOLS%" goto :MissingVersion