StyleCop integrates with Visual Studio, and is accessible from the 'Tools Menu. During the install you can choose whether StyleCop integrates with Visual Studio, or MS Build, or both.
It does not automatically change your source code !
When you run it, it will write a
summary report on how many of its "rules" you have violated. This is written to the 'Output Window of Visual Studio.
The
specific error messages are written to the "Error List" window.
StyleCop, using its default settings, may surprise you by what it finds in your code:
1. it will flag uses of the Tab character as a violation
2. it wants 'using directives inside the NameSpace
3. it really wants to see you use 'this as a prefix to object references even though your code will run fine without using 'this.
I used StyleCop for a while, but just got tired of it; however, I am not currently part of a programming team where having everyone conform to a certain set of code guidelines is critical.
You can configure StyleCop, however, to your taste by removing rules, etc.
See the StyleCop docs for information on customizing it: [
^].