Top "Fxcop" questions

Microsoft's free static analysis tool for analyzing .NET managed code assemblies.

Why/when should you use nested classes in .net? Or shouldn't you?

In Kathleen Dollard's 2008 blog post, she presents an interesting reason to use nested classes in .net. However, she also mentions …

.net class nested fxcop
Visual Studio Code Analysis vs StyleCop + FxCop

I used previously StyleCop + FxCop on my Visual Studio's projects. But now I am testing Visual Studio Code Analysis tool, …

c# visual-studio-2008 code-analysis fxcop stylecop
How do I extend a WinForm's Dispose method?

I am getting this warning from FxCop: "'RestartForm' contains field 'RestartForm.done' that is of IDisposable type: 'ManualResetEvent'. Change the …

c# winforms dispose fxcop
CA2202, how to solve this case

Can anybody tell me how to remove all CA2202 warnings from the following code? public static byte[] Encrypt(string data, …

c# .net code-analysis fxcop
Stylecop vs FXcop

Has Stylecop superseded FXcop? Which product should we be using with Visual Studio 2008?

fxcop stylecop
How to enable Code Analysis in Visual Studio 2010 Professional?

I can see that we can enable code analysis in Visual Studio Team Systems. But i am using Visual Studio 2010 …

visual-studio code-analysis fxcop
Running Code Analysis (FxCop > 10) on build agent without installing Visual Studio

After FxCop 10 Microsoft stopped shipping a separate installer for FxCop. Officially one can currently only run code analysis (FxCop 12.0 / 14.0 / 15.0) after …

.net msbuild continuous-integration fxcop build-server
FxCop for .NET 4.0

I know Visual Studio 2010 has a new Code Analysis tool built in, but that is only for the premium and …

visual-studio-2010 visual-studio .net-4.0 fxcop
Why is it considered bad to expose List<T>?

According to FXCop, List should not be exposed in an API object model. Why is this considered bad practice?

c# fxcop
StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level?

FxCop 10 is complaining about the following: using XYZ.Blah; //CA1709 - "XYZ" using Xyz.Blah; //No complaint. using XylophoneSuperDuperLongFullName.Blah; //…

c# namespaces fxcop stylecop suppressmessage