Skip to content

Commit

Permalink
Explicitly block packing Ssytem.Runtime.Internal into a NuGet package…
Browse files Browse the repository at this point in the history
… to make it more difficult to accidentally ship.
  • Loading branch information
jkoritzinsky committed Nov 17, 2021
1 parent 4f4ee14 commit f233d76
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libraries/System.Runtime.Internal/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>

<Target Name="DisallowPacking" BeforeTargets="Pack">
<Error Text="System.Runtime.Internal should never be shipped outside of this repository so building a NuGet package for it is blocked as there is no use case for a NuGet package of an entirely repo-local assembly." />
</Target>

<Import Project="..\Directory.Build.targets" />
</Project>

0 comments on commit f233d76

Please sign in to comment.