forked from coverlet-coverage/coverlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.targets
21 lines (21 loc) · 1.08 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<Import Project="$(RepoRoot)/Directory.Build.targets" />
<Choose>
<!-- This condition tests whether coverlet.msbuild.props has been imported by the project -->
<When Condition=" '$(ThresholdType)' != '' ">
<ItemGroup>
<!-- Arrange for the project that builds the build tools has built first. -->
<ProjectReference Include="$(RepoRoot)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<!-- Ensure that the built tools can be found at build time.
This is required when the coverlet.msbuild imports are made in their src directory
(so that msbuild eval works even before they are built)
so that they can still find the tooling that will be built by the build. -->
<CoverletToolsPath>$(RepoRoot)artifacts\bin\coverlet.msbuild.tasks\$(Configuration.ToLowerInvariant())_netstandard2.0\</CoverletToolsPath>
</PropertyGroup>
</When>
</Choose>
</Project>