How to disable NU1510 #14458
-
|
I have a project that targets .NET 10 and the new package pruning feature produces multiple instances of NU1510. I tried to use I noticed that it is properly promoted to an error when using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
It doesn't repro for me with the .NET 10 SDK preview 6 which version are you using? Could you share a simple repro? I did both My repro in a new folder
And out of curiosity were the warnings false positives or did you just not want to deal with them right now? |
Beta Was this translation helpful? Give feedback.
It doesn't repro for me with the .NET 10 SDK preview 6 which version are you using? Could you share a simple repro?
If not how do you set the
NoWarn? Something could be overriding theNoWarnmaybe in your project? If so this contains some info about that dotnet/AspNetCore.Docs#9708 (comment) to use$(NoWarn)to append more warnings if warnings (NU1510 in this case) were added toNoWarnin aDirectory.Build.propsfile without overriding that which was defined in the props file.I did both
NoWarnin csproj anddotnet build /nowarn:NU1510and it silenced the warning for both cases. The second one works even ifNoWarnwas being overriden as it will apply the property globally (effectively ign…