[Mono-bugs] [Bug 609097] New: InternalsVisibleTo() assemblyinfo reference not used corectly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 26 11:57:09 EDT 2010



           Summary: InternalsVisibleTo() assemblyinfo reference not used
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;

The following compiler error gets generated trying to compile a test project
that references internal structs in another project where the other project has
the following definition in its AssembyInfo.cs:
  [assembly: InternalsVisibleTo("Drms.Server.Shared.Tests")]
If I change the struct from internal to public then the error goes away so it
seems like its not applying the InternalsVisibleTo attribute in the
This is the error generated if PostProcessingStruct is defined as internal. If
its defined as public then the error goes away. Under windows, everything works
fine and in mono2.4 everything works fine so it looks like as of 2.6 it stoped
working with the InternalsVisibleTo attribute property:

Server/Shared/Shared.Tests/CloneContextTest.cs(87,89): error CS0584: Internal
compiler error: Object reference not set to an instance of an object
Server/Shared/Shared.Tests/CloneContextTest.cs(87,37): error CS1502: The best
overloaded method match for
has some invalid arguments
/usr/local/lib/mono/2.0/mscorlib.dll (Location of the symbol related to
previous error)
Server/Shared/Shared.Tests/CloneContextTest.cs(87,37): error CS1503: Argument
`#1' cannot convert `object' expression to type

Reproducible: Always

Steps to Reproduce:

Configure bugmail: http://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