[Mono-bugs] [Bug 662903] New: Can not include partial class extensions in bindings built with btouch

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 6 23:10:14 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=662903#c0


           Summary: Can not include partial class extensions in bindings
                    built with btouch
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Other
        OS/Version: Apple iOS 4.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: gnorton at novell.com
        ReportedBy: barry.dahlberg at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=407309)
 --> (http://bugzilla.novell.com/attachment.cgi?id=407309)
Example project used to test.

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

The documentation for btouch includes an example of binding a Camera class
including an enum and a partial class:

  http://monotouch.net/Documentation/Binding_New_Objective-C_Types

I am unable to build the example. I have attached an example including a build
script which I have been using. I have also included a file with the partial
class placed in the correct namespace, this may need clarifying in the
documentation.

It looks like btouch is accidentally including the Extensions.cs in the first
phase of compilation which generates a temporary .dll containing the source
interfaces. It should only be included in the second phase which generates the
output .dll.

Running the two phases manually and only including Extensions.cs the second
time produces the expected output.

Reproducible: Always

Steps to Reproduce:
1. Create the 3 files as described in the documentation.
2. Attempt to compile the files using the given command line.
Actual Results:  
The build fails with with compilation errors depending on the variation of the
input used:

* ZEeye is not defined.
* Cannot combine a partial class and an interface with the same name.

Expected Results:  
The build should complete with no errors and produce a .dll.

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