[英]How to just load the latest version of dll from GAC
I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version . 我编写了一个批处理执行框架,在其中我希望(在某些情况下)从GAC加载程序集,其中可能有多个版本,但我只想加载最新版本 。
Is this even possible? 这甚至可能吗?
TIA TIA
Assembly.LoadWithPartialName(string)
将完全按照您的意愿执行。
Linq to Gac can query the GAC. Linq to Gac可以查询GAC。 You can load assembly at runtime once you know what you want.
一旦知道了什么,就可以在运行时加载程序集 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.