Created attachment 3631 [details]
Compile program to reproduce
When calling Assembly.Load(byte) on 2 (or more) different assemblies but with the same name, the initial assembly is loaded and cached for subsequent calls. This is different behavior than in Microsoft's implementation.
static void Main(string args)
var class1 = File.ReadAllBytes("Class1/TestLib.dll");
var class2 = File.ReadAllBytes("Class2/TestLib.dll");
var ass1 = Assembly.Load(class1);
Console.WriteLine(ass1.GetExportedTypes().FullName); // should print 'TestLib.Class1'
var ass2 = Assembly.Load(class2);
Console.WriteLine(ass2.GetExportedTypes().FullName); // should print 'TestLib.Class2'
TestLib.dll only contains 1 class depending on the subdirectory.
In the second case, Mono prints 'TestLib.Class1'.
Sample program attached.
Tested on Mono compiled from source (3.0.8).
Is this ever going to be addressed or acknowlegded?
We'll get to this bug at some time in the future, thanks for reporting.
*** Bug 11420 has been marked as a duplicate of this bug. ***
I can reproduce with 184.108.40.2066 (master/117468d740a)