Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>So far the only tool I have come across that looks like it might do this is NDepend, but I am wondering if there is a simpler solution.</p> </blockquote> <p>I am one of the developer of the tool <a href="http://www.NDepend.com" rel="nofollow noreferrer">NDepend</a>. Please could you let us know what do you find complicated in NDepend and how you imagine a simpler solution for you?</p> <p>NDepend comes with 3 different ways to do what you want: <a href="http://www.ndepend.com/Doc_Matrix.aspx" rel="nofollow noreferrer">Dependency Matrix</a>, <a href="http://www.ndepend.com/Doc_VS_Arch.aspx" rel="nofollow noreferrer">Dependency Graph</a> and also you can write some <a href="http://www.ndepend.com/Features.aspx#CQL" rel="nofollow noreferrer">Code Rule over LINQ Query (CQLinq)</a> and rules to <a href="http://www.ndepend.com/DefaultRules/webframe.html?Q_Avoid_namespaces_dependency_cycles.html" rel="nofollow noreferrer">detect cycle between namespaces</a>, or enforce some particular dependencies.</p> <blockquote> <p>For example, say I have a MyApp.BusinessRules namespace and don't want it to access directly anything in MyApp.GUI, but both namespaces are in the same assembly. </p> </blockquote> <p>For that, the following CQLinq rule can be written, could it be any simpler than that?:</p> <pre><code>warnif count &gt; 0 let businessRules = Application.Namespaces.WithNameLike("^MyApp.BusinessRules") let gui = Application.Namespaces.WithNameLike("^MyApp.GUI") from n in businessRules.UsingAny(gui) let guidNamespacesUsed = n.NamespacesUsed.Intersect(gui) select new { n, guidNamespacesUsed } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload