-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable Nuget warnings with dotnet 2.0 #5769
Comments
@xlegalles Thanks for reaching out. The problem is that you are not passing the right properties to the restore command. Please use the following commands-
or
Please let us know if this fixes your issue. Thanks! |
Well, that's what we do... plus I told you that it works for the CS0162 warning. But it has absolutely no effect for NU*. And it is not only for restore: we have tons of warnings for all commands: build, publish, etc. even clean.
|
@xlegalles Thanks for the detailed response.
I had to make 2 changes i.e.
Can you try this csproj and send me the output? |
According to the blog post here: https://blog.nuget.org/20170815/Whats-nu-in-NuGet-with-VS2017-15-3.html#msbuild-integration-of-nuget-warnings-and-errors
However trying restore the following project reports a warning:
Changing the project thusly does however appear to work:
Does this imply that package reference based warning suppression isn't working? |
@Sumo-MBryant : Thanks for the details in your comment. The problem here is that the issue occurs not for To be sure, take a look at the assets file in the project/obj directory. At the bottom, you will see that the error is for newtonsoft -
I hope this clarifies the case here. Please let us know if you need any more help! |
@xlegalles @Sumo-MBryant I am closing this bug as there is no new issue here. I have another related issue at - #5712. Please let me know if you feel this issue needs more attention. |
Well, if you think both bugs are linked, I'm ok. But it is still really annoying to have so many warnings. |
@xlegalles I agree. Ideally you should address and resolve the warnings. But sometimes it is not possible. Hence for restore you should be able to We do not have the support for |
Details about Problem
Description
This is linked to what I have commented in #5764: we have hundreds of NU1603 warnings and we want to disable them in Release in order to clean-up the build server logs. But it does not work: all
dotnet
commands (e.g.restore
orbuild
) ignore our settings and warnings are still displayed. We also have the same behavior in VS 2017 15.3.0Here is a sample projet setting:
Note that if I add/remove the CS0162 warning, it is correctly ignored/displayed.
The text was updated successfully, but these errors were encountered: