-
Notifications
You must be signed in to change notification settings - Fork 4
/
BuildAll.bat
25 lines (24 loc) · 1.17 KB
/
BuildAll.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@ECHO OFF
SETLOCAL EnableExtensions
SET RootDir=%~dp0.
SET PadVer=00%TargetVisualStudioNumericVersion%
IF "%TargetVisualStudioNumericVersion%"=="15.0" (
MSBuild.exe /nologo "%RootDir%\CodeGen.VS2017.sln" %*
MSBuild.exe /nologo "%RootDir%\VSIXInstall\VSIXOnly\PLiXVSIX.VS2017.sln" %*
) ELSE IF "%TargetVisualStudioNumericVersion%"=="16.0" (
MSBuild.exe /nologo "%RootDir%\CodeGen.VS2019.sln" %*
MSBuild.exe /nologo "%RootDir%\VSIXInstall\VSIXOnly\PLiXVSIX.VS2019.sln" %*
) ELSE IF "%TargetVisualStudioNumericVersion%"=="17.0" (
MSBuild.exe /nologo "%RootDir%\CodeGen.VS2022.sln" %*
MSBuild.exe /nologo "%RootDir%\VSIXInstall\VSIXOnly\PLiXVSIX.VS2022.sln" %*
) ELSE IF "%PadVer:~-4%" LEQ "8.0" (
IF NOT DEFINED FrameworkSDKDir (CALL "%VS80COMNTOOLS%\vsvars32.bat")
MSBuild.exe /nologo "%RootDir%\CodeGen.sln" %*
MSBuild.exe /nologo "%RootDir%\PLiXReflector.sln" %*
MSBuild.exe /nologo "%RootDir%\Setup\Setup.sln" %*
) ELSE (
IF NOT DEFINED FrameworkSDKDir (CALL "%VS80COMNTOOLS%\vsvars32.bat")
MSBuild.exe /nologo "%RootDir%\CodeGen.sln" %* /toolsversion:2.0
MSBuild.exe /nologo "%RootDir%\PLiXReflector.sln" %*
MSBuild.exe /nologo "%RootDir%\Setup\Setup.sln" %*
)