[Mono-bugs] [Bug 518909] New: InternalsVisibleTo ignored for dynamic "To"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 2 15:44:41 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=518909


           Summary: InternalsVisibleTo ignored for dynamic "To"
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: Dax at daxxfiles.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
When emitting dynamic assemblies signed with an assembly name and key marked as
InternalsVisibleTo in another assembly, internals of the marked assembly can
not be accessed. Saving the dynamic assembly and loading it works.

Steps to reproduce the problem:
1. download attachment
2. gmcs -t:library other.cs; gmcs -r:other.dll main.cs; mono ./main.exe


Actual Results:
Hello World!

<exception>


Expected Results:
Hello World!
Hello World!


How often does this happen? 
Every time.


Additional Information:
If this is no bug: I see no reason to disallow dynamic targets for
InternalsVisibleTo, as loading the an assembly (as bytes, file, you name it)
does work. I was quite surprised to see my ORM break on mono SVN, while it
worked just fine on earlier versions and MS.NET.

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


More information about the mono-bugs mailing list