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

前端 未结 6 535
既然无缘
既然无缘 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:13

    For the project level go to Project -> Properties -> Build tab

    enter image description here

    If you want to disable the warning to some code section, try this :

    #pragma warning disable XXX,XXX
                //your code 
    #pragma warning restore XXX,XXX
    

    Read about #pragma warning

提交回复
热议问题