[Mono-bugs] [Bug 354970] New: AssemblyBuilder. SetCustomAttribute should not affect assembly name

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 20 05:30:17 EST 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list