If you are the nitpicking kind of developer, which I think I must confess that I am, you might be interested in the newly released tool Microsoft Source Analysis for C#
The tool also know as Stylecop analyzes your code with regard to best practices and some style and consistency rules. It differs from FxCop as it analyzes the source code directly instead of the binaries.
I just had to try it out immediately so I installed it, and it integrates nicely with Visual Studio, and you find it in the Tools menu.
I am currently working on a artificial neural network library, so I decided to give it a whirl with the analysis tool. Its a fairly small project.
I had 309 errors mainly consisting of lacking headers, using statements not in namespace declaration, single line comments with three slashes and calling members without "this" prefix.
I think its a great tool, but I am not sure that I like all the rules - I am absolutely certain that I would not enforce all these rules on all the projects on my team.
Fortunately it is possible to turn of the rules, that you might not like. Although the settings can't be found on the Tools menu - you find them by right clicking your project.
It would appear that the settings are set for the project, and they are saved in an xml settings file called "Settings.SourceAnalysis" in your project folder.
If you put a settings file in the parent folder, it is enforced on any project in your solution if you select the option to "merge with settings file found in parent folders" in the settings dialog.
You can also integrate the analysis in MsBuild.
Related links: