Skip to content

Commit 38d7e37

Browse files
committed
Fix build
1 parent 055360c commit 38d7e37

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

build.cmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,17 @@ if not exist %vswhere% (
2424
goto BuildFail
2525
)
2626

27-
REM We're fine w/ any .NET SDK newer than 2.1.500 but also need a 2.1.x runtime. Microsoft.Net.Core.Component.SDK.2.1
2827
REM actually checks for only the runtime these days.
2928
set InstallDir=
3029
for /f "usebackq tokens=*" %%i in (`%vswhere% -version 17 -latest -prerelease -products * ^
3130
-requires Microsoft.Component.MSBuild ^
3231
-requires Microsoft.NetCore.Component.SDK ^
33-
-requires Microsoft.Net.Core.Component.SDK.2.1 ^
3432
-property installationPath`) do (
3533
set InstallDir="%%i"
3634
)
3735

3836
if not DEFINED InstallDir (
39-
echo "Could not find a VS2019 installation with the necessary components (MSBuild, .NET Core 2.1 Runtime, .NET SDK). Please install VS2019 or the missing components."
37+
echo "Could not find a VS2022 installation with the necessary components (MSBuild, .NET SDK). Please install VS2019 or the missing components."
4038
)
4139

4240
if exist %InstallDir%\MSBuild\Current\Bin\MSBuild.exe (

0 commit comments

Comments
 (0)