Microsoft Source Analysis for C# (aka StyleCop) is designed to help you enforce a set of best practice style and consistency rules.
It can be run from inside Visual Studio or via MSBuild, however if you're planning to use the Visual Studio integration then you should be aware of this rather nasty bug. Hopefully the bug will be addressed soon.
Link: Microsoft Source Analysis for C#
Link: Source Analysis Blog