[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


           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=, Culture=nl-BE, PublicKeyToken=null
LibB, Version=, Culture=neutral, PublicKeyToken=null

Actual result:

LibA, Version=, Culture=en-US, PublicKeyToken=null
LibB, Version=, 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