-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomTypeDescriptors.msbuild
27 lines (27 loc) · 1.53 KB
/
CustomTypeDescriptors.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
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir>$(MSBuildProjectDirectory)</SolutionDir>
<Configuration>Debug</Configuration>
<Platform>Any CPU</Platform>
<OutputPath Condition=" '$(OutputPath)'=='' ">$(MSBuildProjectDirectory)\bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Projects Include="$(MSBuildProjectDirectory)\CustomTypeDescriptors\CustomTypeDescriptors.csproj" />
<Projects Include="$(MSBuildProjectDirectory)\CustomTypeDescriptors.Tests\CustomTypeDescriptors.Tests.csproj" />
</ItemGroup>
<Target Name="Build" BeforeTargets="Clean">
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);Platform=$(Platform);OutputPath=$(OutputPath)" />
<ItemGroup>
<NUnitConsoleExe Include="$(MSBuildProjectDirectory)\packages\NUnit.Runners*\**\nunit-console.exe"></NUnitConsoleExe>
</ItemGroup>
<Message Text="Running NUNit..." />
<Exec Command="@(NUnitConsoleExe -> '%(FullPath)') $(OutputPath)\CustomTypeDescriptors.Tests.dll /framework:net-4.5" />
</Target>
<Target Name="RunUnitTests">
<ItemGroup>
<NUnitConsoleExe Include="$(MSBuildProjectDirectory)\packages\NUnit.Runners*\**\nunit-console.exe"></NUnitConsoleExe>
</ItemGroup>
<Message Text="Running NUNit..." />
<Exec Command="@(NUnitConsoleExe -> '%(FullPath)') $(OutputPath)\CustomTypeDescriptors.Tests.dll /framework:net-4.5 /out:nunit-testResults.txt /xml:nunit-testResult.xml" />
</Target>
</Project>