Skip to content

Commit 08b875b

Browse files
authored
NoWarn NuGet package pruning warnings (#1153)
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.
1 parent 81b4952 commit 08b875b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/referencePackages/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
<NoWarn>$(NoWarn);RS1025</NoWarn>
108108
<!-- Don't warn on RS1026 - Enable concurrent execution -->
109109
<NoWarn>$(NoWarn);RS1026</NoWarn>
110+
111+
<!-- Disable package and project pruning warnings. All dependencies in this repository mirror the
112+
original package's dependencies and shouldn't get changed here. -->
113+
<NoWarn>$(NoWarn);NU1510;NU1511</NoWarn>
110114
</PropertyGroup>
111115

112116
</Project>

0 commit comments

Comments
 (0)