forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
36 lines (27 loc) · 1.22 KB
/
build.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="dir.props" />
<ItemGroup>
<Project Include="src\dirs.proj" />
</ItemGroup>
<Import Project="dir.targets" />
<Import Project="dir.traversal.targets" />
<!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
<Target Name="Clean">
<RemoveDir Directories="$(BinDir)" />
</Target>
<Target Name="GenerateCoverageReport"
AfterTargets="Build"
Inputs="$(CoverageReportDir)\*.coverage.xml"
Outputs="$(CoverageReportDir)*.*"
Condition="$(_CoverageEnabled)">
<PropertyGroup>
<ReportGeneratorVersion>2.0.4.0</ReportGeneratorVersion>
<ReportGeneratorCommandLine>$(PackagesDir)ReportGenerator.$(ReportGeneratorVersion)\ReportGenerator.exe</ReportGeneratorCommandLine>
<ReportGeneratorOptions>-reports:$(CoverageReportDir)\*.coverage.xml -targetdir:$(CoverageReportDir) -reporttypes:Html</ReportGeneratorOptions>
</PropertyGroup>
<Exec
Command="$(ReportGeneratorCommandLine) $(ReportGeneratorOptions)"
ContinueOnError="ErrorAndContinue" />
</Target>
</Project>