Skip to content

Commit

Permalink
NoWarn NuGet package pruning warnings
Browse files Browse the repository at this point in the history
Contributes to dotnet/sdk#46642

NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted.

NoWarn the new warnings as SBRP packages should be a mirror of the source-shipping packages and not change dependencies.
  • Loading branch information
ViktorHofer authored Feb 10, 2025
1 parent 81b4952 commit 7eeb1ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/referencePackages/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
<NoWarn>$(NoWarn);RS1025</NoWarn>
<!-- Don't warn on RS1026 - Enable concurrent execution -->
<NoWarn>$(NoWarn);RS1026</NoWarn>

<!-- Disable package and project pruning warnings. All dependencies in this repository mirror the
original package's dependencies and shouldn't get changed here. -->
<NoWarn>$(NoWarn);NU1510;NU1511</NoWarn>
</PropertyGroup>

</Project>

0 comments on commit 7eeb1ab

Please sign in to comment.