Does any one of you know a way I'd be able to suppress e.g. CA2000 for an entire solution?
I'm thinking of something like a GlobalSuppressions class with the following line of code:
[assembly: SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectsBeforeLosingScope")]
Thanks for your help in advance.
The best way of doing this is by creating a
Directory.Build.propsfile which will be automatically included in all projects in sub-folders to where it is located. Then add the following to the file: