Remove implicit references for non-test projects (#1037)

This commit is contained in:
Nate McMaster 2019-01-31 13:20:34 -08:00 committed by GitHub
parent f9de66f47d
commit f87c01b129
1 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,8 @@
<Description>Helpers for writing tests for Roslyn analyzers.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageTags>$(PackageTags);testing</PackageTags>
<!-- This is actually a library for test projects, not a test project. -->
<IsUnitTestProject>false</IsUnitTestProject>
<!-- This package is internal, so we don't generate a package baseline. Always build against the latest dependencies. -->
<UseLatestPackageReferences>true</UseLatestPackageReferences>
<IsPackable>true</IsPackable>
@ -14,6 +16,15 @@
<Reference Include="System.Reflection.Metadata" />
<Reference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
<Reference Include="Microsoft.Extensions.DependencyModel" />
<!--
This intentionally does not reference 'xunit', 'xunit.core', or any runner packages.
XUnit recommends only using xunit.extensibility.*, xunit.assert, and xunit.abstractions for packages which "extend" xunit.
This allows consumers to decide which type of xunit runner they want to use to run these tests,
and avoids problems with `dotnet pack`.
See https://xunit.github.io/docs/nuget-packages and the special note in https://xunit.github.io/releases/2.3.
-->
<Reference Include="xunit.assert" />
<Reference Include="xunit.abstractions" />
</ItemGroup>