forked from ormsolutions/NORMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildVS2019.bat
28 lines (26 loc) · 1.23 KB
/
BuildVS2019.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
26
27
28
@ECHO OFF
SETLOCAL
IF "%TargetVisualStudioVersion%"=="v8.0" (
SET DegradeToolsVersion=/toolsversion:2.0
) ELSE IF "%TargetVisualStudioVersion%"=="v9.0" (
SET DegradeToolsVersion=/toolsversion:3.5
) ELSE IF "%TargetVisualStudioVersion%"=="v10.0" (
SET DegradeToolsVersion=/toolsversion:4.0
) ELSE IF "%TargetVisualStudioVersion%"=="v11.0" (
SET DegradeToolsVersion=/toolsversion:4.0
) ELSE IF "%TargetVisualStudioVersion%"=="v12.0" (
SET DegradeToolsVersion=/toolsversion:12.0
) ELSE IF "%TargetVisualStudioVersion%"=="v14.0" (
SET DegradeToolsVersion=/toolsversion:14.0
) ELSE IF "%TargetVisualStudioVersion%"=="v15.0" (
SET DegradeToolsVersion=/toolsversion:15.0
) ELSE (
SET TargetVisualStudioVersion=v16.0
SET DegradeToolsVersion=/toolsversion:Current
)
CALL "%~dp0Build.bat" %* /consoleloggerparameters:DisableMPLogging %DegradeToolsVersion%
IF "%TargetVisualStudioVersion%"=="v15.0" (
MSBuild.exe /nologo "%~dp0VSIXInstall\VSIXOnly\NORMAVSIX.VS2017.sln" /consoleloggerparameters:DisableMPLogging" %DegradeToolsVersion% %*
) ELSE IF "%TargetVisualStudioVersion%"=="v16.0" (
MSBuild.exe /nologo "%~dp0VSIXInstall\VSIXOnly\NORMAVSIX.VS2019.sln" /consoleloggerparameters:DisableMPLogging" %DegradeToolsVersion% %*
)