简体   繁体   中英

Get loaded assembly based on Full Qualified Name

Anyone have an idea how to easily parse through loaded assemblies and get an Assembly object based on the full name?

For example, my config has "MyWonderfulApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" and I want to know what "Assembly" that is so I can load it into an AssemblyCatalog in MEF.

NOTE: I understand there are different ways to load so lets keep those answers out.

Thanks!

您将使用AssemblyName来解析配置文件中的字符串,我想您会在应用程序域中加载程序集,并将它们从config中的程序集名称与程序集的Assembly.GetName方法的结果进行比较,以对它们进行过滤。

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