How can I disable a specific warning for a C# project in VS2012?

前端 未结 6 523
既然无缘
既然无缘 2020-12-20 11:45

I am trying to generate partial XML documentation during my build process for a C# project in VS2012. When I check the XML documentation file option in Project->Properties->

6条回答
  •  情歌与酒
    2020-12-20 12:09

    The warning you're getting has a number (e.g. CS2000), so what you need to do is right-click on the project, go to the Build tab, and add that warning to the Suppress warnings text box. You can subsequently suppress more than one by separating them with a comma (e.g. CS2000,CS2001).

提交回复
热议问题