Find out dependencies of all DLLs?

前端 未结 6 1104
北恋
北恋 2020-12-28 12:57

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?

6条回答
  •  一生所求
    2020-12-28 13:47

    If you mean programmatically, use Assembly.GetReferencedAssemblies.

    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.)

提交回复
热议问题