-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
56 lines (47 loc) · 2.08 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Test">
<PropertyGroup>
<MSBuildCommunityTasksPath>.</MSBuildCommunityTasksPath>
<BuildDir>$(MSBuildProjectDirectory)\build\</BuildDir>
<TestAssembly>$(BuildDir)FluentIL.Cecil.Tests.dll</TestAssembly>
<SourceDir>src\</SourceDir>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<ProductVersion>1.03</ProductVersion>
<BuildPackage>true</BuildPackage>
<DistDirectory>dist\</DistDirectory>
</PropertyGroup>
<ItemGroup>
<SolutionFile Include="FluentIL.Cecil.sln" />
</ItemGroup>
<Import Project="util\msbuild\MSBuild.Community.Tasks.Targets"/>
<Target Name="Clean">
<MSBuild Projects="@(SolutionFile)" Targets="Clean" Properties="Configuration=$(Configuration);Platform=$(Platform);OutputPath=$(BuildDir)"/>
<DeleteTree Directories="$(BuildDir)" ContinueOnError="true"/>
</Target>
<Target Name="GenerateAssemblyInfo">
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(SourceDir)\GlobalInfo.cs"
AssemblyCompany="Elemar JR"
AssemblyProduct="FluentIL"
AssemblyTrademark=""
ComVisible="false"
CLSCompliant="false"
AssemblyDescription=".NET Emitting Helper"
AssemblyVersion="$(ProductVersion)"
AssemblyFileVersion="$(ProductVersion)" />
</Target>
<Target Name="Build" DependsOnTargets="GenerateAssemblyInfo">
<MSBuild Projects="@(SolutionFile)" Properties="Configuration=$(Configuration);Platform=$(Platform);OutputPath=$(BuildDir)"/>
</Target>
<Target Name="Rebuild">
<CallTarget Targets="Clean; Build"></CallTarget>
</Target>
<Target Name="Test" DependsOnTargets="Build">
<Nunit Assemblies="$(TestAssembly)" ToolPath="util\nunit"/>
</Target>
<Target Name="nuget">
<CallTarget Targets="Clean; Build"></CallTarget>
<MakeDir Directories="$(DistDirectory)"/>
<Exec Command=".\util\nuget\nuget.exe pack .\FluentIL.Cecil.1.0.3.nuspec -OutputDirectory dist"></Exec>
</Target>
</Project>