Saturday, October 27, 2012

Mvvm MonoTouch back up and running :)

I've got a new Mac Air

Bought it through the refurb store - feels like new :)

The good news is that with just a few additions/changes I can build and run the Mvvm Monotouch solution in vNext in https://github.com/slodge/mvvmcross

The small hacks are:

Edit the file /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets, finding the PropertyGroup that sets

  <TargetFrameworkIdentifier>MonoTouch</TargetFrameworkIdentifier>  

And to it, adding the lines:

  <CscToolExe>smcs</CscToolExe>  <CscToolPath>/Developer/MonoTouch/usr/bin</CscToolPath>

Note that doing this needs R+W permission on that file.

----

Then after that, you need to convert all the portable CSProj files so that they use Profile1, not Profile104 (but back on the PC you will need Profile104 again)

To do this - replace in files, choose *.csproj, and choose to replace ">Profile104<" with ">Profile1<"

----

So now back to work... :)

3 comments:

  1. I don't think the SQLBits and the Tutorial work. Do they have unported plugins for bits of functionality? Like say pull to refresh? I think you mentioned previously that Tutorial should work, but looks for me that TwitterSearch still works, but Tutorial does not. Is that correct?

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Do you have any more on this? SQLBits needs a bit of help due to the System.Net build issues - but other things should work... unless I've messed up a push (Which is possible)

    ReplyDelete