-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMonad-Comonad-Precis.msbuild
33 lines (26 loc) · 1.23 KB
/
Monad-Comonad-Precis.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
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NUnitPath>$(MSBuildProjectDirectory)\tools\nunit</NUnitPath>
<NUnitFrameworkDll>$(NUnitPath)\framework\nunit.framework.dll</NUnitFrameworkDll>
<BuildPath>$(MSBuildProjectDirectory)\build</BuildPath>
<OutputDll>$(BuildPath)\precis.dll</OutputDll>
<OutputPdb>$(BuildPath)\precis.pdb</OutputPdb>
</PropertyGroup>
<ItemGroup>
<SourceFile Include="*.cs" />
</ItemGroup>
<Target Name="BuildAndTest">
<MakeDir Condition="!Exists('$(BuildPath)')" Directories="$(BuildPath)" />
<Csc Sources="@(SourceFile)"
OutputAssembly="$(OutputDll)"
References="$(NUnitFrameworkDll)"
TargetType="library"
PdbFile="$(OutputPdb)"
DebugType="full" />
<Copy SourceFiles="$(NUnitFrameworkDll)"
DestinationFolder="$(BuildPath)" />
<Exec WorkingDirectory="$(BuildPath)"
Command=""$(NUnitPath)\nunit-console.exe" /process=Single /framework=v4.0.30319 $(OutputDll) /xml="$(BuildPath)\TestResults.xml"" />
</Target>
</Project>