Get dependent assemblies?

后端 未结 4 1456
醉梦人生
醉梦人生 2021-02-01 06:48

Is there a way to get all assemblies that depend on a given assembly?

Pseudo:

Assembly a = GetAssembly();
var dependants = a.GetDependants();
         


        
4条回答
  •  情深已故
    2021-02-01 07:40

    I'm not aware of any built-in possibility to get dependencies at runtime. So I think the easiest solution is define an extension method and use code from this application. I used an application itself a years ago. But do not use code of it.

    Hope this helps.

提交回复
热议问题