Skip to content
Discussion options

You must be logged in to vote

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 the NoWarn maybe 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 to NoWarn in a Directory.Build.props file without overriding that which was defined in the props file.

I did both NoWarn in csproj and dotnet build /nowarn:NU1510 and it silenced the warning for both cases. The second one works even if NoWarn was being overriden as it will apply the property globally (effectively ign…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@siegfriedpammer
Comment options

@Frulfump
Comment options

@siegfriedpammer
Comment options

@Frulfump
Comment options

Answer selected by siegfriedpammer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants