forked from AddinX/AddinX.Ribbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
40 lines (31 loc) · 1.31 KB
/
build.cmd
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
29
30
31
32
33
34
35
36
37
38
39
40
@echo CSharp Command-Line Compile
@echo off
@echo Usage:
@echo build.cmd @Config @Platform
@echo @Config: Release or Debug. The default value is Release
@echo @Platform: x64 or x86. The default value is x64
@echo build.cmd clear to remove all previous build for this solution
set config=Release
set platform="Any Cpu"
set solution = AddinX.Ribbon.sln
IF [%1] EQU [clean] GOTO CleanAll
IF [%1] EQU [clear] GOTO CleanAll
IF [%1] EQU [] GOTO RunCmd
set config=%1
:CheckPlatform
IF [%2] EQU [] GOTO RunCmd
set platform=%2
IF [%1] NEQ "Release" IF [%1] NEQ "Debug" GOTO RunCmd
goto RunCmd
:CleanAll
"%ProgramFiles(x86)%\MSBuild\14.0\Bin"\msbuild.exe %solution% /property:Configuration=Debug /property:Platform=x86 /t:clean
"%ProgramFiles(x86)%\MSBuild\14.0\Bin"\msbuild.exe %solution% /property:Configuration=Debug /property:Platform=x64 /t:clean
"%ProgramFiles(x86)%\MSBuild\14.0\Bin"\msbuild.exe %solution% /property:Configuration=Release /property:Platform=x86 /t:clean
"%ProgramFiles(x86)%\MSBuild\14.0\Bin"\msbuild.exe %solution% /property:Configuration=Release /property:Platform=x64 /t:clean
goto finish
:RunCmd
@echo %config%
@echo %platform%
"%ProgramFiles(x86)%\MSBuild\14.0\Bin"\msbuild.exe %solution% /property:Configuration=%config% /property:Platform=%platform% /t:rebuild /verbosity:quiet
:finish
@echo on