Search code examples
c#namespaces.net-assemblylinqpad

reference two different version of the same assembly in LINQPad


How can I reference two different version of the same assembly in LINQPad ? On a standard C# application I'd rely on assembly alias, but AFAIK on LINQPad, it's not possible.

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


Solution

  • 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. It plays havoc with type resolution (because identical types are incompatible if they come from different assemblies).