Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Suppressions » FAQ   (RSS)

FAQ: What is the GlobalSuppressions.cs/GlobalSuppressions.vb file and why is it needed? Is it possible to change the name of this file? [David Kean]

I've noticed that Code Analysis sometimes places suppressions in a file called GlobalSuppression.cs (GlobalSuppressions.vb in Visual Basic). Why this is file needed and it is possible to change its name? What is this file? When you right-click on a warning

FAQ: Why does FxCop ignore my in-code (SuppressMessageAttribute) suppressions? [David Kean]

FxCop 1.35 brings with it the ability to suppress messages in code via the use of the SuppressMessage attribute. This allows you to do the following: public class PublicKey { private byte [] _Token; [...] [SuppressMessage( "Microsoft.Performance" , "CA1819:PropertiesShouldNotReturnArrays"
 
Page view tracker