NDepend query methods/types in framework assembly being used by other assemblies/types

Posted by icelava on Stack Overflow See other posts from Stack Overflow or by icelava
Published on 2010-04-02T09:52:32Z Indexed on 2010/04/02 9:53 UTC
Read the original article Hit count: 552

Filed under:
|

I am trying to determine which types or methods in a base framework assembly are being used by other assemblies in the application system. I cannot seem to find a straight-cut query to do that.

What i have to do is first determine which assemblies are directly using the framework assembly, then manually list them in a second query

SELECT TYPES FROM ASSEMBLIES "IBM.Data.DB2"
WHERE IsDirectlyUsedBy "ASSEMBLY:FirstDirectUsedByAssebmly"
OR IsDirectlyUsedBy "ASSEMBLY:SecondDirectUsedByAssebmly"
OR IsDirectlyUsedBy "ASSEMBLY:ThirdDirectUsedByAssebmly"
OR IsDirectlyUsedBy "ASSEMBLY:FourthDirectUsedByAssebmly"

Is there a better/faster way to query for this?

Additionally, the query results are focused on the matched types only. The Dependency graph or matrix exported only shows details of those. I do not know how to render a graph that shows those types or methods plus show the dependent types/methods from other assemblies that are consuming them?

© Stack Overflow or respective owner

Related posts about ndepend

Related posts about cql