Skip to content

Commit

Permalink
Including pre-release versions of VS for builds (dotnet#25689)
Browse files Browse the repository at this point in the history
* Including pre-release versions of VS for builds

Fixes #25684

* Update build-native.cmd
  • Loading branch information
sebastienros authored and jkotas committed Dec 7, 2017
1 parent 2242316 commit 28a593f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if defined VisualStudioVersion goto :Run

set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
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%" (
Expand Down
2 changes: 1 addition & 1 deletion src/Native/build-native.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if defined VisualStudioVersion goto :RunVCVars

set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
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
Expand Down

0 comments on commit 28a593f

Please sign in to comment.