简体   繁体   中英

access referenced projects at runtime

I have a rather strange project where I need to check the assemblies of the projects included as references in my project to see if they contain a certain Type. As far as I can tell the only way to see which projects are in my solution is to parse the solution file - which I can't do at runtime since I don't have it.

Does anyone know a way to see, at runtime, which assemblies are in the project file?

To check the referenced assemblies in your project assembly at runtime, you need to use Reflection. this.GetType().Assembly.GetReferencedAssemblies()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM