[MonoDevelop] Newbie: "New solution…" Add-in: how to specify MT / Xam.iOS?

Larry O'Brien larry.obrien at xamarin.com
Tue Jul 30 19:30:47 UTC 2013


I am trying to write my first simple add-in -- a "single-file" iOS app that defines the View, Controller, and AppDelegate in a single file. 

As I understand it, this is essentially just a matter of getting the .xpt file correct. The following snippet falls short in two ways: 

(1) The monotouch reference isn't correct (I get a broken reference icon); and 
(2) The target framework is (as specified) 4.0 and not "Xamarin.iOS"

If I change the `TargetFrameworkVersion` attribute to the obvious, I get "Invalid framewokr moniker 'Xamarin.iOS'" 

...snip...
    <Project name = "${ProjectName}" directory = ".">
      <Options ExternalConsole="True" TargetFrameworkVersion="4.0" />
      <References>
        <Reference type="Package" refto="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <Reference type="Package" refto="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <Reference type="Package" refto="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <Reference type="Gac" refto="monotouch" />
      </References>
...snip... 




More information about the Monodevelop-list mailing list