Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 28a593f

Browse files
sebastienrosjkotas
authored andcommitted
Including pre-release versions of VS for builds (#25689)
* Including pre-release versions of VS for builds Fixes #25684 * Update build-native.cmd
1 parent 2242316 commit 28a593f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

run.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if defined VisualStudioVersion goto :Run
2121

2222
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
2323
if exist %_VSWHERE% (
24-
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
24+
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
2525
)
2626
if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS%
2727
if not exist "%_VSCOMNTOOLS%" (

src/Native/build-native.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if defined VisualStudioVersion goto :RunVCVars
5858

5959
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
6060
if exist %_VSWHERE% (
61-
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
61+
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
6262
)
6363
if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS%
6464
if not exist "%_VSCOMNTOOLS%" goto :MissingVersion

0 commit comments

Comments
 (0)