Cool tool: NDepend


I just saw a free cool tool, NDepend, which analyzes .NET assemblies and lets you get neet metrics. It also lets you run queries like:



WARN IF Count > 0 IN SELECT TYPES OUT OF NAMESPACES “System.Xml”
WHERE DepthOfIsUsing “System.Xml.XmlChildNodes” == 1
// Restrict the possibility to use the type “System.Xml.XmlChildNodes”      
// only to certain namespace.
 


It also has a GUI front end:


 


The tool was written by Patrick Smacchia, who wrote Practical .NET2 and C#2, which I blogged about earlier.


Comments (3)

  1. Dan McKinley says:

    You forgot to mention that it can also emit .xml files that describe the dependencies. I use this (well, a stripped down version of NDepend that runs faster, actually) to support other custom build/project tools that I have written at my company.

  2. JConwell says:

    Can you immagine an VS addin that uses this type of syntax for its Search functionality?

  3. Mike says:

    JConwell – It would definitely be cool if VS had this sort of search. I’d love to see this sort of seach possible on the managed heap as well ("find me all objects whose total size > 100k").