forked from mmonteleone/DynamicBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DynamicBuilder.msbuild
37 lines (30 loc) · 1.09 KB
/
DynamicBuilder.msbuild
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<UsingTask
AssemblyFile="lib\xunit.runner.msbuild.dll"
TaskName="Xunit.Runner.MSBuild.xunit"/>
<PropertyGroup Condition="'$(BuildType)' == ''">
<BuildType>Debug</BuildType>
</PropertyGroup>
<Target Name="Build">
<MSBuild
Projects="src\DynamicBuilder.sln"
Targets="Build"
Properties="Configuration=$(BuildType)" />
</Target>
<Target Name="Test" DependsOnTargets="Build">
<xunit Assembly="build\Debug\DynamicBuilder.Tests.dll"/>
</Target>
<Target Name="Release">
<MSBuild
Projects="src\DynamicBuilder.sln"
Targets="Build"
Properties="Configuration=Release" />
<Copy SourceFiles="src\DynamicBuilder\Xml.cs"
DestinationFolder="build\Release\"/>
<Delete Files="build\Release\DynamicBuilder.Tests.dll;build\Release\xunit.dll;build\Release\DynamicBuilder.Tests.pdb"/>
</Target>
<Target Name="Clean">
<RemoveDir Directories="build;src\DynamicBuilder\obj;src\DynamicBuilder.Tests\obj;"/>
</Target>
</Project>