Search Wiki:
Resource Page Description
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project

For more information about Microsoft StyleCop see the StyleCop blog at http://blogs.msdn.com/sourceanalysis.
Last edited Jul 10 at 4:36 PM  by jasonall, version 5
Comments
BrentLamborn wrote  May 27 at 1:30 PM  
Thanks a lot for this tool!

TATWORTH wrote  Aug 4 at 9:16 AM  
Where is the promised version 4.3 that fixes the "COM object detached from RCW" error?

TATWORTH wrote  Aug 4 at 9:45 AM  
When will Visual Studio generated code such as for unit tests be StyleCop compliant?

jasonall wrote  Aug 5 at 3:15 PM  
We are currently finalizing the documentation for the 4.3 release and will get this release out to you as soon as we can get the docs published. Thanks for your patience.

TATWORTH wrote  Aug 13 at 10:04 AM  
If the 4.3 has passed testing can we have it as install now? The inability of 4.2 to co-exist with ReSharper is major problem. Can you also give a copy of 4.3 to people at JetBrains so they can test it against ReSharper .

jasonall wrote  Aug 19 at 12:23 PM  
StyleCop 4.3 has now been released on this site.

TATWORTH wrote  Aug 19 at 3:14 PM  
There is a problem in upgrading from 4.2 to 4.3 in that only one version can be installed. The build path has changed in the project file from
<Import Project="$(ProgramFiles)\MSBuild\Microsoft\SourceAnalysis\v4.2\Microsoft.SourceAnalysis.targets" />
</Project>
to
<Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.SourceAnalysis.targets" />
</Project>

This requires a manual edit of the project file as it will not load until this path is modified.

Bo wrote  Aug 19 at 6:03 PM  
@TATWORTH
Please use the "Discussions" or issues tab above for these kind of comments.

Cheetah wrote  Oct 23 at 7:50 PM  
Woow, this is very very cool. The style it enforces is great and I'm going to force my colleage developers with a bad coding style to use this.

akutz wrote  Nov 2 at 10:33 PM  
FYI - StyleCopCmd was released last week at http://stylecopcmd.sourceforge.net/. StyleCopCmd provides a command line interface and NAnt task for interacting with StyleCop. StyleCopCmd also creates beautiful HTML reports, making it easy to integrate with continuous integration servers such as TeamCity.

JigarChhadwa wrote  Thu at 2:51 PM  
Great tool.. Just superb... :-)

Updating...
Page view tracker