Suppress a warning for all projects in Visual Studio

前端 未结 6 1257
心在旅途
心在旅途 2021-01-04 00:48

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

6条回答
  •  生来不讨喜
    2021-01-04 01:21

    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.

提交回复
热议问题