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

Paolo Molaro lupus at ximian.com
Fri Sep 7 13:12:27 EDT 2007


On 09/05/07 Marek Habersack wrote:
> 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,

Thanks.

Please make the test program into a proper regression test and check it
in in mono/tests (it should exit with a non-zero value if any subtest
fails).

> Index: mono/metadata/appdomain.h
> ===================================================================
> --- mono/metadata/appdomain.h	(revision 85261)
> +++ mono/metadata/appdomain.h	(working copy)
> @@ -88,6 +88,9 @@
>  MonoAssembly *
>  mono_domain_assembly_open  (MonoDomain *domain, const char *name);
>  
> +MonoReflectionAssembly *
> +mono_try_assembly_resolve (MonoDomain *domain, MonoString *fname, gboolean refonly);

Put this into domain-internals.h and mark it as internal.

Thanks!

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list