-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommon.build.xml
44 lines (39 loc) · 1.58 KB
/
Common.build.xml
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="BuildAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="!Exists('$(Configuration)')">
<SharedLibsDir>$(MSBuildProjectDirectory)\SharedLibs</SharedLibsDir>
<Configuration>Debug</Configuration>
<EnableTest>True</EnableTest>
<OutputDir>$(MSBuildProjectDirectory)</OutputDir>
<LogsDir>$(MSBuildProjectDirectory)</LogsDir>
<KeyFile>$(MSBuildProjectDirectory)\CastleKey.snk</KeyFile>
<ClsCompliant>true</ClsCompliant>
</PropertyGroup>
<Target Name="BuildAll"
DependsOnTargets="Clean;BeforeCompile;Compile;" />
<Target Name="BeforeCompile"/>
<Target Name="Clean">
<MSBuild Projects="$(SolutionFile)"
Properties="Configuration=$(Configuration)"
Targets="Clean" />
</Target>
<Target Name="GenerateAssemblyInfo">
<AssemblyInfo
AssemblyCompany="Castle Project"
AssemblyCopyright="Castle Project, original author or authors"
AssemblyDescription="$(ProjectName)"
AssemblyInformationalVersion="$(Version).0"
AssemblyTitle="$(ProjectName)$(ExtraInfo)"
CodeLanguage="CS"
CLSCompliant="$(ClsCompliant)"
AssemblyVersion="$(Version).0"
OutputFile="%(AssemblyInfo.File)"
/>
</Target>
<Target Name="Compile" DependsOnTargets="GenerateAssemblyInfo">
<MSBuild Projects="$(SolutionFile)"
Properties="Configuration=$(Configuration)" />
</Target>
<Import Project="$(SharedLibsDir)\Tools\MSBuild.Community.Tasks.Targets"/>
<UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="$(SharedLibsDir)\Tools\MbUnit\MbUnit.MSBuild.Tasks.dll" />
</Project>