How can I disable a specific warning for a C# project in VS2012?
For the project level go to Project -> Properties -> Build tab
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
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).
You can open the project properties and enter comma separated warning numbers you want to suppress into the Suppress Warnings textbox on the Build tab.