[英]reference two different version of the same assembly in LINQPad
How can I reference two different version of the same assembly in LINQPad ? 如何在LINQPad中引用同一程序集的两个不同版本? On a standard C# application I'd rely on assembly alias, but AFAIK on LINQPad, it's not possible. 在标准C#应用程序上,我将依靠程序集别名,但是在LINQPad上使用AFAIK则是不可能的。
Do you know any other dirty way to do it ? 您知道其他肮脏的方式吗?
Of course, I can't recompile the assembly and change their namespace! 当然,我不能重新编译程序集并更改其名称空间!
Thanks in advance 提前致谢
This isn't possible. 这是不可能的。 In fact, LINQPad tries very hard to stop this happening, because referencing different versions (or copies) of the same assembly is something that nearly always happens by accident. 实际上,LINQPad竭尽全力阻止这种情况的发生,因为引用同一程序集的不同版本(或副本)几乎总是偶然地发生。 It plays havoc with type resolution (because identical types are incompatible if they come from different assemblies). 它会对类型解析造成破坏(因为如果相同的类型来自不同的程序集,则它们是不兼容的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.