build: conditionally reference dotCover (fixes #75)

For CI runs, this package must not be referenced, or symbol validation will fail.
This commit is contained in:
Oliver Booth 2023-04-02 19:54:09 +01:00
parent da220c2242
commit cb48dd2551
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025
1 changed files with 7 additions and 0 deletions

View File

@ -95,4 +95,11 @@
<ProjectReference Include="..\X10D.SourceGenerator\X10D.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>
<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<PackageReference Include="JetBrains.dotCover.MSBuild" Version="1.0.5-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>