[Mono-bugs] [Bug 579899] New: mtouch error when inheriting from a ViewCOntroller in a library

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 15 04:50:01 EST 2010


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

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


           Summary: mtouch error when inheriting from a ViewCOntroller in
                    a library
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Manfred at pp-p.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
Build a class derivied from another class defined in a library project,
throws an error message like this:
Error 1: mtouch failed with the following message:

Unhandled Exception: System.InvalidOperationException: Comparison threw an
exception. ---> System.IO.FileNotFoundException: Could not resolve: mscorlib,
Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 
 at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference
name) [0x00000] in <filename unknown>:0 
 at Mono.Cecil.DefaultAssemblyResolver.Resolve
(Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type)
[0x00000] in <filename unknown>:0 
  at Mono.Cecil.TypeReference.Resolve () [0x00000] in <filename unknown>:0 

..

Steps to reproduce the problem:
1. create MT solution (MT Window app) and add a library project. Add a ref to
the lib from the app.
2. create a class in the library like this:
    public class BaseViewCtrlr : UIViewController {
        public BaseViewCtrlr () {
        }
3.)  add a class to the Application like this
    public class MyViewCtrlr :BaseViewCtrlr{
        public MyViewCtrlr () {
        }
4.) Try to build for iPhone.


Actual Results:
Project doesn't build.

Expected Results:
Project should build.


How often does this happen? 
Always

Additional Information:

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