I\'ve seen answers showing how to suppress a warning for a specific line of code or for a specific project. I don\'t want that.
I want to suppress a specific warning
You may try to use Directory.Build.props adding NoWarn property for specific warnings. I haven't verified it though.
And as it's said in another answer, it's better to fix the root cause instead of ignoring it.