[Mono-bugs] [Bug 426757] New: gmcs cannot find extension methods in referenced assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 16 15:22:57 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=426757


           Summary: gmcs cannot find extension methods in referenced
                    assembly
           Product: Mono: Compilers
           Version: 2.0
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bryan.murphy at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=239896)
 --> (https://bugzilla.novell.com/attachment.cgi?id=239896)
sample solution exhibiting problem

Description of Problem:

I'm having problems compiling projects that reference extension methods in
external/referenced assemblies.  Extension methods that are internal to the
assembly work as expected.  The external extension methods cannot be resolved
by gmcs and thus causes compiler errors such as the following:

[Task:File=/home/bmurphy/src/ExtensionMethodsBug/Program.cs, Line=21,
Column=33, Type=Error, Priority=Normal, Description=Type
`Autofac.Builder.ContainerBuilder' does not contain a definition for `Register'
and no extension method `Register' of type `Autofac.Builder.ContainerBuilder'
could be found (are you missing a using directive or an assembly
reference?)(CS1061)]

Steps to reproduce the problem:
1. Download the attached project
2. Compile it in MonoDevelop

Additional Information:
This project compiles and executes successfully under Visual Studio 2008.  I'm
currently using mono 2.0rc1 and a trunk build of monodevelop to compile this
solution.


-- 
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