[Mono-dev] [PATCH] AppDomain.AssemblyResolve event differences between Mono and MS.NET

Marek Habersack grendello at gmail.com
Tue Sep 4 19:03:09 EDT 2007


Hello everybody,

  Running the attached test program on Mono and MS.NET shows that there are
differences in the way we generate the event. MS.NET calls the handler only
with the assembly name passed to the Assembly.Load* methods while Mono takes an
extra step to call the handler with a fake full assembly name. Also,
Assembly.LoadWithPartialName generates the event on MS.NET but not on Mono. The
attached patch makes Mono behave the same way what MS.NET. Please review,

marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asm_resolve_tests.cs
Type: text/x-csharp
Size: 1862 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070905/a17bfb9c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assemblyresolve_event.diff
Type: text/x-patch
Size: 3868 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070905/a17bfb9c/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070905/a17bfb9c/attachment-0002.bin 


More information about the Mono-devel-list mailing list