Skip to content

Commit 0dba1e8

Browse files
committed
Don't warn during restore about duplicate package refs
Added `<NoWarn>` property to suppress NU1504 warnings caused by duplicate package references emitted by the SDK and `.props` files.
1 parent 36e02d9 commit 0dba1e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SmallSharp/Sdk.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
<!-- Workaround https://github.com/dotnet/sdk/issues/50573 -->
1111
<AlternateCommonProps>$(MSBuildThisFileDirectory)\Sdk.Empty.props</AlternateCommonProps>
12+
13+
<!-- Since we emit duplicate package references from SDK as well as .props -->
14+
<NoWarn>$(NoWarn);NU1504</NoWarn>
1215
</PropertyGroup>
1316

1417
<!-- Import Common.props explicitly we're too early here to use MSBuildProjectExtensionsPath -->

0 commit comments

Comments
 (0)