我期待阅读使用我的应用程序的所有组件(DLL)的方式。 在标准的C#项目有参考的文件夹,当它展开我可以阅读使用的所有库。
I'm looking the way to read all assemblies (DLLs) used by my app. In standard C# project there is "References" folder, when it is expanded I can read all libs used.
目标是programically(在运行时)读出用在我的解决方案,每个项目的所有程序集。 最后,我想看看库所使用的编译的* .exe程序
GOAL is read programically (in runtime) all assemblies used by each project in my solution. Finally I'd like to see what libs are used by compiled *.exe application
你认识路?
推荐答案
你看Assembly.GetReferencedAssemblies?
请注意,您不使用就不会结束任何引用排放到元数据,这样你就不会看到他们的执行时间。
Note that any references you don't use won't end up being emitted into the metadata, so you won't see them at execution time.
我用 GetReferencedAssemblies
之前递归现在要找到一个名为类型,而无需指定程序集。
I've used GetReferencedAssemblies
recursively before now to find a named type without having to specify the assembly.
相关推荐
最新文章