2022-02-16 13:29:23 +01:00
@ echo off
setlocal enabledelayedexpansion
2022-02-20 23:07:40 +01:00
if defined ProgramFiles(x86) (
set VSWHERE = " !ProgramFiles(x86)! \Microsoft Visual Studio\Installer\vswhere.exe "
) else (
set VSWHERE = " !ProgramFiles! \Microsoft Visual Studio\Installer\vswhere.exe "
)
2022-02-16 13:29:23 +01:00
if exist !VSWHERE! (
for /f " usebackq delims= " %% i in ( `!VSWHERE! -latest -prerelease -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe` ) do (
set MSBUILD = " %% i "
)
if exist !MSBUILD! (
!MSBUILD! TJAPlayer3.sln /t:build -restore /p:configuration=release /p:platform=x86
) else (
2022-02-20 23:07:40 +01:00
echo MSBuild is not installed. Please read: https://github.com/l1m0n3/OpenTaiko/wiki/How-to-build-OpenTaiko-without-using-Visual-Studio-^( on-Windows^)
2022-02-16 13:29:23 +01:00
)
) else (
2022-02-20 23:07:40 +01:00
echo Visual Studio Installer is not installed. Please read: https://github.com/l1m0n3/OpenTaiko/wiki/How-to-build-OpenTaiko-without-using-Visual-Studio-^( on-Windows^)
2022-02-16 13:29:23 +01:00
)
pause