Skip to content

Commit

Permalink
housekeeping: add a reference to test libraries for runners
Browse files Browse the repository at this point in the history
  • Loading branch information
glennawatson committed Oct 13, 2020
1 parent 052b859 commit 83f065f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<DebugType>Full</DebugType>
</PropertyGroup>

<ItemGroup Condition="$(IsTestProject)">
<ItemGroup Condition="$(IsTestProject) or $(MSBuildProjectName.Contains('TestRunner'))">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="Xunit.StaFact" Version="1.0.37" />
Expand All @@ -45,15 +45,12 @@
<PackageReference Include="DiffEngine" Version="6.1.1" />
</ItemGroup>

<ItemGroup Condition="$(IsTestProject) and !$(TargetFramework.StartsWith('netstandard')) and !$(TargetFramework.StartsWith('MonoAndroid')) and !$(TargetFramework.StartsWith('uap'))">
<ItemGroup Condition="$(IsTestProject)">
<PackageReference Include="xunit.runner.console" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
</ItemGroup>

<ItemGroup Condition="$(IsTestProject) and !$(TargetFramework.StartsWith('MonoAndroid')) and !$(TargetFramework.StartsWith('uap')) ">
<PackageReference Include="coverlet.msbuild" Version="2.9.0" />
</ItemGroup>

<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
Expand Down

0 comments on commit 83f065f

Please sign in to comment.