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


           Summary: AssemblyBuilder.SetCustomAttribute should not affect
                    assembly name
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Added custom attributes (eg. AssemblyVersionAttribute) to a dynamic assembly
through AssemblyBuilder.SetCustomAttribute (or the 2.0 ctors that take a
IList<CustomAttributeBuilder>) should never affect the name of the assembly.

The name of the assembly is only constructed through the AssemblyName instance
that is passed in through the AppDomain.DefineDynamicAssembly overloads.

To reproduce, compile and run the attached source code.

Expected result:

LibA, Version=1.3.5.7, Culture=nl-BE, PublicKeyToken=null
LibB, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Actual result:

LibA, Version=1.2.3.4, Culture=en-US, PublicKeyToken=null
LibB, Version=1.2.3.4, Culture=en-US, PublicKeyToken=null


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to