我正在编写一个测试应用程序来执行一些回归测试。这个想法是为了能够在一个库的多个版本上运行测试。我的目标是在Dictionary中加载dll,其中键是版本字符串(比如"3.0.0.0"),值是Assembly实例。我可以动态加载一个程序集并调用它上的方法,但当我尝试加载第二个程序集时,我得到了以下异常:
The located assembly's manifest definition does not match the assembly reference.
我使用以下代码行加载程序集:
asm = Assembly.LoadFrom(lib, hash, Syst