[mono-android] [MonoTouch] sharing code between mono touch and mono for android
Felix Collins
felix at intranel.com
Tue Feb 28 04:03:31 UTC 2012
On 28/02/2012 4:48 p.m., James Briant wrote:
> Yes they can be, but the examples from the book aren't, nor are the ones from FlightsNorway. If they /are/ in the same solution, it doesn't help refactoring at all, because there are two separate project hierarchies: refactoring Library.Droid will change the files in App.Droid, and also in Library.MT (because the are the exact same files as Library.Droid), but it wont do the refactoring in App.MT. So, they might as well be in separate solutions. And in fact, having them all in the same solution /completely fucks up Intellisense/ and Resharper's Code Dom. Whole Solution Analysis (in R#) that I totally rely on to make sure my MT projects will actually compile when switch to the Mac, is completely broken by having the same file in two different projects.
Sounds like a feature request for JetBrains.
>
> The MT app can be in the same solution, btw. You just need something <https://github.com/jamiebriant/VsMono>to fool VS into loading it, and a hacked version of monotouch.dll that claims to be .NET 4. Then you can use R# Solution Analysis to catch errors as you type: if R# says there are no errors, MonoDevelop will compile it on the Mac 99.99% of the time. I edit my MT apps on windows.
>
I think I'll have to do that (are there step by step instructions somewhere?). My brain hurts trying to learn all the different keybindings on the mac despite having hacked as many as possible. I use the alt-<firstletter> key mnemonics in windows all the time and that plays merry hell on a mac!
Felix
More information about the Monodroid
mailing list