I have just installed "Visual Studio 2010 Ultimate"
I was using "StyleCop 4.3" but have also tried "StyleCop 4.4"
I created a new C# project based on "Windows Form Application".
I enabled code analysis on the project "Code Analysis Tab | Selected "Enable Code Analysis on Build (defines CODE_ANALYSIS constant)"
I built the application. Builds with no errors or warnings.
Run Style Cop on the project.
In the "Error List" I select any failing rule and right click. The resulting context menu does not include the "Suppress Message(s)" option that I was expecting. I can manually add the supress message to the source (or GlobalSupression
file) by hand (but this an take a long time and is hard get correct). I can not find any style cop rule that presentst the "Supress Message(s)" option in the context menu but several other (I presume FxCop) rules do.