[Mono-bugs] [Bug 660567] New: mcs.exe cannot find attributes in referenced dlls

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 20 11:45:28 EST 2010



           Summary: mcs.exe cannot find attributes in referenced dlls
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: piotr.wysocki at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

Using mono/mcs/class/lib/basic/mcs.exe as my gmcs(*)
I fail to compile the following example:

> cat FooAttribute.cs 
using Castle.ActiveRecord;
namespace F { public class FooAttribute : ActiveRecordAttribute {} }
> cat Bar.cs 
using F;
namespace Bar { [Foo] public class Bar { } }
> gmcs /t:library /r:Castle.ActiveRecord.dll FooAttribute.cs 
> gmcs /t:library /r:FooAttribute.dll Bar.cs 
Bar.cs(2,18): error CS0246: The type or namespace name `Foo' could not be
found. Are you missing a using directive or an assembly reference?
Bar.cs(2,18): error CS0616: `F.FooAttribute': is not an attribute class
/home/wysek/mono-fails/20101220-mcs.exe/attribute/FooAttribute.dll (Location of
the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

You can get Castle.ActiveRecord.dll from 

(*) I have just overwritten my gmcs with mcs.exe

Reproducible: Always

Actual Results:  
It should build (or give me a reasonable error message).
It builds ok in mono 2.8.1.

Expected Results:  
Fails to build.

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