Skip to content

Commit

Permalink
🔄 🏗🐛 Prevents Transitive Flow of Development-Only NuGet Dependencies
Browse files Browse the repository at this point in the history
This should keep downstream dependents from having our build-time references to static analysis tools flow to them transitively.

For more information, see: NuGet/Home#4125 and https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assets.


🔄 Original Commit: https://github.com/foxguardsolutions/Pump/commit/0e7fd3c48787d7b029de8aa52967b905cf7ced4f
  • Loading branch information
brucificus committed Nov 4, 2019
1 parent 993e5d1 commit 768abc0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit 768abc0

Please sign in to comment.