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

http://bugzilla.novell.com/show_bug.cgi?id=609097#c0


           Summary: InternalsVisibleTo() assemblyinfo reference not used
                    corectly
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


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

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
assemblyInfo.cs.  
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
`System.Collections.Generic.List<Drms.Server.Shared.Domain.PostProcessingStruct>.Add(Drms.Server.Shared.Domain.PostProcessingStruct)'
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
`Drms.Server.Shared.Domain.PostProcessingStruct'


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

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

Reply via email to