Skip to content

Commit

Permalink
Allow build with VS2022 installed (#52487)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored May 10, 2021
1 parent dec019c commit e688fcf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eng/native/init-vs-env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ if "%VisualStudioVersion%"=="16.0" (
set __PlatformToolset=v142
goto :SetVCEnvironment
)
if "%VisualStudioVersion%"=="17.0" (
set __VSVersion=vs2022
set __PlatformToolset=v142
goto :SetVCEnvironment
)

:VSMissing
echo %__MsgPrefix%Error: Visual Studio 2019 with C++ tools required. ^
echo %__MsgPrefix%Error: Visual Studio 2019 or 2022 with C++ tools required. ^
Please see https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/windows-requirements.md for build requirements.
exit /b 1

Expand Down

0 comments on commit e688fcf

Please sign in to comment.