Skip to content

Commit 770cb96

Browse files
committed
Update win-build.bat
1 parent 45efe70 commit 770cb96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

win-build.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set VSWHERE=tools\vswhere.exe
44
rem Download vswhere (command line utility to find MSBuild path)
55
if not exist %VSWHERE% (
66
echo vswhere utility doesn't exist. Downloading...
7-
powershell -Command "Invoke-WebRequest https://mirror.mtasa.com/bdata/vswhere.exe -OutFile %VSWHERE%"
7+
powershell -Command "Invoke-WebRequest https://mirror-cdn.multitheftauto.com/bdata/vswhere.exe -OutFile %VSWHERE%"
88
)
99

1010
rem Create solution (ignoring pause)
@@ -17,9 +17,9 @@ for /f "usebackq tokens=1* delims=: " %%i in (`%VSWHERE% -latest -requires Micro
1717
)
1818

1919
rem Output an error if not exists
20-
set MSBUILDPATH="%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"
20+
set MSBUILDPATH="%InstallDir%\MSBuild\Current\Bin\MSBuild.exe"
2121
if not exist %MSBUILDPATH% (
22-
echo Could not find MSBuild. Make sure you have Visual Studio 2017 installed
22+
echo Could not find MSBuild. Make sure you have Visual Studio 2022 installed
2323
goto end
2424
)
2525
echo Found MSBuild at: %MSBUILDPATH%

0 commit comments

Comments
 (0)