找出所有 DLL 的依赖关系? [英] Find out dependencies of all DLLs?
本文介绍了找出所有 DLL 的依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组 DLL(比如 20 个).如何找出一个特定 DLL(例如 DLL A)所依赖的所有 DLL?
I have a collection of DLLs(say 20). How do I find out all the DLLs on which one specific DLL (say DLL A) is depending upon?
推荐答案
如果您的意思是以编程方式,请使用 Assembly.GetReferencedAssemblies
.
If you mean programmatically, use Assembly.GetReferencedAssemblies
.
您可以递归地使用它来查找您需要的所有程序集.(所以你找到X的依赖,然后是依赖的依赖等等)
You can use that recursively to find all the assemblies you need. (So you find the dependencies of X, then the dependencies of the dependencies, etc.)
这篇关于找出所有 DLL 的依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文