-
Notifications
You must be signed in to change notification settings - Fork 77
/
#Compile#.bat
109 lines (104 loc) · 3.55 KB
/
#Compile#.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
@Echo off
::set releasetype=Release
set releasetype=Debug
::
:: path to msbuild compiler - do not include trailing slash
::
set msbuild35=%systemroot%\Microsoft.Net\FrameWork\v3.5\msbuild.exe
set msbuild4=%systemroot%\Microsoft.Net\FrameWork\v4.0.30319\msbuild.exe
::
::
:: clear existing DLLs and EVEs from the previous build(s)
::
del .\bin\debug\*.* /Q
del .\bin\debug\*.* /Q
del .\bin\release\*.* /Q
del .\bin\release\*.* /Q
::
:: Build Project 1
::
set nameofproject=BUYLPI
set csproj=.\BuyLPI\BuyLPI.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 1 of 7 builds
pause
::
:: Build Project 2
::
set nameofproject=Questor
set csproj=.\questor\Questor.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 2 of 7 builds
pause
::
:: Build Project 3
::
set nameofproject=Questor.Modules
set csproj=.\Questor.Modules\Questor.Modules.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 3 of 7 builds
pause
::
:: Build Project 4
::
set nameofproject=updateinvtypes
set csproj=.\updateinvtypes\UpdateInvTypes.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 4 of 7 builds
pause
::
:: Build Project 5
::
set nameofproject=valuedump
set csproj=.\valuedump\ValueDump.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 5 of 7 builds
pause
::
:: Build Project 6
::
set nameofproject=QuestorManager
set csproj=.\QuestorManager\QuestorManager.csproj
::"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%"
Echo Done building %nameofproject% - see above for any errors - 6 of 7 builds
pause
::
:: Build Project 7
::
set nameofproject=QuestorStatistics
set csproj=.\questorstatistics\QuestorStatistics.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 7 of 7 builds
pause
::
:: Build Project 8
::
::set nameofproject=QuestorSettings
::set csproj=.\QuestorSettings\QuestorSettings.csproj
::%pathtomsbuild4%\msbuild %%csproj% /p:configuration="%releasetype%" /target:Clean;Build
::Echo Done building %nameofproject% - see above for any errors - 7 of 7 builds
::pause
if not exist output mkdir output >>nul 2>>nul
:: Echo deleting old build from the output directory
del .\output\*.exe /Q >>nul 2>>nul
del .\output\*.dll /Q >>nul 2>>nul
::
:: DO NOT delete the XMLs as this is the ONLY directory they exist in now.
::
::del .\output\*.xml /Q >>nul 2>>nul
::
:: Eventually all EXEs and DLLs will be in the following common directory...
::
copy .\bin\%releasetype%\*.exe .\output\ >>nul 2>>nul
copy .\bin\%releasetype%\*.dll .\output\ >>nul 2>>nul
if "%releasetype%"=="Debug" copy .\bin\%releasetype%\*.pdb .\output\ >>nul 2>>nul
::Echo Copying mostly static files...
::copy .\questor\invtypes.xml .\output\
::copy .\questor\ShipTargetValues.xml .\output\
::copy .\questor\factions.xml .\output\
::copy .\questor\settings.xml .\output\settings-template-rename-to-charactername.xml
Echo.
Echo use #TransferToLiveCopy#.bat to move the new build into place for testing
Echo.
pause