c# - Locate transitive dependencies for a given namespace in a single assembly -


How can I find all the transitive dependencies for a set of types in the given namespace? For example, suppose I have 4 assembly meetings: A, B, C, D. 4 Assemblies have the following references:

A -> B
B -> C >> A - >> D Now I want to know all kinds of "T" Namespace "N" which is required by A. I tried some techniques:

  1. Reese: I T (type requirement) Was unable to determine. I only get D (Assembly)

  2. Delete D build A manually by DN.TT . Look at the errors to detect. Slow and error prone.

Dns (For assembly with given namespace), give me all the necessary T (types) by A. From concrete, "I need all kinds of company related information." My Diary Database Assembly in Assembly ".

How can I do this? Although I'm open to other devices, I already own Risper and Visual Studio Pro 2013.

If you can list Assembly's namespaces, then you can do this by using a free open source tool And checks that the namespace dependency is in line with your rules.

Therefore, if the name of assembly A is A1, A2, etc. (not with any sub-namespace) and namespace is not a reference to them, the company is. The domain (and any sub-namespace), then the NSDOP rules will appear something like this.

  & lt; NsDepCopConfig isEnabled = "True" CodeIssueKind = "Warning" & gt; & Lt; Permission from = "*" to = "*" /> & Lt; Rejected from = "A1 *" to "Company.Demain." "/" & Gt; & Lt; Rejected from = "A2." "From" "Company.Demain." "/" & Gt; ... & lt; / NsDepCopConfig & gt;  

Make a solution and all dependency violations will be reported as warnings so that you can refact until you reach the zero alert.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -