
262
|
Chapter 7, Help and Research
#66 Generate Statistics on Your C# Code
HACK
FxCop web site (http://www.gotdotnet.com/team/fxcop)
In addition to more documentation, here you can find the latest down-
loads, readme files, and samples. You can also find custom rules that
other developers have created for use in your own FxCop Projects.
FxCop blog (http://blogs.msdn.com/fxcop)
Although not updated very often, this site does provide some good
information.
MSDN Magazine (http://msdn.microsoft.com/msdnmag)
John Robbins wrote two excellent articles about FxCop for the June and
September 2004 issues of MSDN Magazine. These are highly recom-
mended reads.
—Dave Donaldson
HACK
#66
Generate Statistics on Your C# Code Hack #66
You’ll write a lot of code in Visual Studio. Now, learn about a free tool that
lets you view assorted statistics and information about your C# Visual Studio
Projects.
Have you ever wondered how many files, classes, or lines of code exist in
one or more of your Visual Studio Projects? While you can certainly count
these metrics manually, there is a free Visual Studio add-in that will provide
these statistics (and more!) in a flash. Once installed, this add-in, called dev-
Metrics, adds an Analyze menu option to the Visual Studio Tools menu.
When selected, the projects in the currently loaded Visual Studio Solution
are examined, and their statistics are presented in an easy-to-read report.
(Unfortunately, ...