-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathBuild.Release.proj
109 lines (84 loc) · 3.94 KB
/
Build.Release.proj
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<!-- Declare properties -->
<PropertyGroup>
<Sourceroot>$(MSBuildProjectDirectory)</Sourceroot>
<Zipdir>$(MSBuildProjectDirectory)/ReleaseCandites</Zipdir>
<ExternalProjectsDir>$(Sourceroot)\Tools</ExternalProjectsDir>
<MSBuildCommunityTasksPath>$(ExternalProjectsDir)\Pre-compiled</MSBuildCommunityTasksPath>
<NDocToolPath>$(ExternalProjectsDir)\msbuildtasks\Documentation\ndoc\</NDocToolPath>
<Revision>0</Revision>
<CodeAnalysisForceOutput>False</CodeAnalysisForceOutput>
<CodeAnalysisQuiet>True</CodeAnalysisQuiet>
</PropertyGroup>
<!-- Import all tasks -->
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/>
<!-- Item group -->
<ItemGroup>
<DefaultExclude Include="**\*.svn\**" />
<DefaultExclude Include="**//*.svn/**" />
</ItemGroup>
<!-- All sql files to link -->
<ItemGroup>
<SqlFiles Include="Database/**//*.sql" Exclude="@(DefaultExclude)" />
</ItemGroup>
<!-- No documentation available
Ndoc currently has several issues with .net 2.0 support. The MSBuild community
has no taks ready for Sandcastly but are beeing worked on. While Ndoc 2.0 nor
sandcastle is ready documentation will not be supported.
<Target Name="Documentation" DependsOnTargets="Compile">
<NDoc Documenter="MSDN"
ProjectFilePath="ndoc.xml"
ToolPath="$(NDocToolPath)"
/>
</Target>
//-->
<Target Name="Main">
<CallTarget Targets="PreClean" RunEachTargetSeparately="false" />
<CallTarget Targets="Version" RunEachTargetSeparately="false" ContinueOnError="false" />
<CallTarget Targets="Compile" RunEachTargetSeparately="false" ContinueOnError="false" />
<CallTarget Targets="Zip" RunEachTargetSeparately="false" ContinueOnError="true" />
<CallTarget Targets="AfterClean" RunEachTargetSeparately="false" />
</Target>
<Target Name="PreClean">
<!-- Delete all recent compiled files -->
<MSBuild Projects="Build.Cleanall.proj" BuildInParallel="false" />
<CreateItem Include="Binary/*.*;Binary/Release/*.*" Exclude="@(DefaultExclude);Binary/*.config">
<Output TaskParameter="Include" ItemName="PreClear"/>
</CreateItem>
<Delete Files="@(PreClear)"/>
</Target>
<Target Name="AfterClean">
<!-- Delete all recent compiled files -->
<MSBuild Projects="Build.Cleanall.proj" BuildInParallel="false" />
<CreateItem Include="Binary/*.*" Exclude="@(DefaultExclude);Binary/*.config">
<Output TaskParameter="Include" ItemName="AfterClear"/>
</CreateItem>
<Delete Files="@(AfterClear)"/>
</Target>
<Target Name="Compile">
<!-- Build all projects -->
<MSBuild Projects="SagaRevisided.sln" BuildInParallel="false" Properties="Configuration=Debug"/>
<MSBuild Projects="Abstraction/Saga.Data.sln" BuildInParallel="false" Properties="Configuration=Debug"/>
<MSBuild Projects="Tools/Saga.Tools.sln" BuildInParallel="false" Properties="Configuration=Debug"/>
</Target>
<Target Name="Zip">
<CreateItem Include="Binary/*.*" Exclude="@(DefaultExclude);Binary/*.pdb;Binary/errorlog.xsl;Binary/Saga.Scripting;">
<Output TaskParameter="Include" ItemName="ZipFiles"/>
</CreateItem>
<!-- Clean old files-->
<MakeDir ContinueOnError="true" Directories="$(Sourceroot)/Binary/Release/" />
<!-- Zip archive files -->
<Zip Files="@(ZipFiles)"
WorkingDirectory="Binary/"
ZipFileName="$(Sourceroot)/Binary/Release/SagaRev.Binairy.$(Revision).zip" />
<Zip Files="@(SqlFiles)"
WorkingDirectory="Database/"
ZipFileName="$(Sourceroot)/Binary/Release/SagaRev.Database.$(Revision).zip" />
</Target>
<Target Name="Version">
<!-- Get the svn revision -->
<SvnVersion LocalPath="$(MSBuildProjectDirectory)">
<Output TaskParameter="Revision" PropertyName="Revision" />
</SvnVersion>
</Target>
</Project>