vs2008 code analysis vs. stylecop

  • Thread starter Thread starter Benjie Fallar III
  • Start date Start date
B

Benjie Fallar III

hi,

im a little confused on the official difference between VS 2008 Code
Analysis tool and CodePlex StyleCop. When to use VS 2008 code analysis and
when to use StyleCop?
 
The internal code analysis is FxCop, if I remember correctly, which is run
against compiled assemblies. StyleCop is run against source code. The rule
sets are very similar, but style cop can check things like headers, which
are not compiled into the release.

You can build both into an automated build, although StyleCop is designed to
fold into an MSBuild task without any tweaking. FxCop can be done with a
custom build task.

Hope this helps!

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top