[Mono-bugs] [Bug 426991] New: AppDomain:: AssemblyLoad does not fire when an assembly with same name is loaded

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 17 11:16:13 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=426991


           Summary: AppDomain::AssemblyLoad does not fire when an assembly
                    with same name is loaded
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


AppDomain::AssemblyLoad does not fire when an assembly with same name is loaded
from different location.

This program prints "Loaded" twice on .NET and only once on Mono

using System;
using System.Reflection;

class C
{
        static void OnAssemblyLoad (object sender, AssemblyLoadEventArgs args)
        {
                Console.WriteLine ("Loaded");
        }

        public static void Main (string[] args)
        {
                AppDomain.CurrentDomain.AssemblyLoad += new
AssemblyLoadEventHandler (OnAssemblyLoad);
                foreach (string s in args)
                        Assembly.LoadFrom (s);
        }
}

Executed as: app.exe f1\0.dll 0.dll where 0.dll are different dlls with same
name.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list