找出所有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屋!
查看全文