StyleCop is a free static code analysis tool from Microsoft that checks C# code for conformance to StyleCop's recommended coding styles and a subset of Microsoft's .NET Framework Design Guidelines such as casing, white space, indents, etc.
It can be run from inside of Visual Studio or integrated into an MSBuild project.
- StyleCop Main Website
- StyleCop Blog
- StyleCop Tutorials: http://www.onedotnetway.com/stylecop-tutorial/ - http://www.dotnetspark.com/kb/500-c-sharp-code-reviews-using-stylecop.aspx
FxCop is a free static code analysis tool from Microsoft that checks .NET managed code assemblies for conformance to Microsoft's .NET Framework Design Guidelines.
It's main concerns are:
- Library design
- Naming conventions
Unlike StyleCop, you can't run FxCop from inside Visual Studio but it has a project for itself that needs to be opened.
Tip: Both FxCop and StyleCop have few overlapping features such as Naming Convention
Visual Studio Integration Code Analysis Tool:
FxCop is essentially a standalone version of Visual Studio Integration Code Analysis.