显示程序集依赖关系的工具
我开始在一个新项目中工作,该项目在一个解决方案中包含许多组件。 我还不熟悉程序集依赖关系,并且很难弄清楚哪个程序集依赖于另一个程序集。
您知道有哪些工具能够显示依赖项列表或更好的可视化图表吗?
任何帮助表示赞赏!
I begun work in a new project with lots of assemblies in a single solution.
I am not familiar yet with the assembly dependencies and having a hard time figuring out which assembly depends on another.
Do you know any tools that are capable to show a dependency list or better a visual graph of it?
Any help appreciated !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下面是一些快速代码,用于展示 Cecil 库 执行此操作的情况:
它生成一个
dot
图形文件。在一个相当简单的项目上运行它会导致:在一个不太简单的项目上运行它会返回以下结果:
< img src="https://i.sstatic.net/9OQF3.jpg" alt="在此处输入图像描述">
建议过滤掉某些程序集 (
.StartsWith("System.")?) 和 /或限制搜索深度等。
Here is some quick code to show case the Cecil Library to do this:
It generates a
dot
graph file. Running this on a fairly simple project results in:Running it on a slightly less simple project returned this:
It may be advisable to filter out certain assemblies (
.StartsWith("System.")
?) and / or limit search depth etc.NDepend 是依赖图分析方面的王者。 NDepend 是一个商业工具,它提出:
请参阅此Stackoverflow 答案中有关相关问题的所有详细信息。
NDepend is the king when it comes to dependency graph analysis. NDepend is a commercial tool that proposes:
See all details in this Stackoverflow answer concerning a related question.