简体   繁体   English

在LINQPad中引用同一程序集的两个不同版本

[英]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.

相关问题 引用两个程序集,每个引用另一个程序集,但版本不同 - Reference to two assemblies, each one with reference to the another assembly but with different version 引用针对不同平台的同一程序集的不同版本 - Reference different version of same assembly targeted for different Platforms 是否可以将同一装配的不同版本引用到单个项目中? - Is it possible to reference different version of the same assembly into a single project? 使用Prism,两个模块是否可以引用同一装配体的不同版本? - With Prism, is it possible for two modules to reference different versions of the same assembly? 每个版本引用不同的程序集版本? - Reference different assembly version per build? clickonce相同的发布版本但程序集版本不同,更新没有发生 - clickonce same publish version but assembly version different, update not happening 不同的LinqPad选项卡获得相同的互斥锁? - Different LinqPad tabs acquires the same mutex? LinqPad在同一服务器上连接两个Azure数据库 - LinqPad connect two azure databases on same server 同一程序集的两个副本的程序集标识可以不同吗? - Can assembly identities be different for two copies of the same assembly? 两个不同的汇编版本“找到的汇编的清单定义与汇编参考不匹配” - Two different assembly versions “The located assembly's manifest definition does not match the assembly reference”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM