[Mono-osx] Monobjc thread, please comment with your experiences with Monobjc

Tomasz Muszyński thom at union.waw.pl
Thu Dec 11 13:27:31 EST 2008

Wiadomość napisana w dniu 2008-12-11, o godz. 13:07, przez Andrew Brehm:
> 4. I am trying to figure out if it is possible to create a single  
> code base
> that uses either Winforms or Monobjc depending on compiler switches  
> or,
> ideally, a single binary that uses Winforms or Monobjc depending on  
> where it
> is run. For the second case, the bundle thing might be a problem. I  
> wish
> Windows would support bundles.* So far my test program is a C#  
> command line
> utility (officially).

You need to create two UI projects directed for each platform. Core of  
application (which is platform independent, so everything without UI)  
You should put into other, shared project.

> *I figure it would be a good idea to install Mono programs on  
> Windows in
> "c:\program files" as bundles and create a shortcut to the
> "Application.app\Contents\Windows\Application.exe" binary. That way  
> the
> bundle could be copied between Mac OS and Windows. In the root of
> "Application.app\" a small Windows program or batch file could  
> create a
> shortcut on the desktop when started.

Not so bad idea. Nant can make it for You. But I think on Windows You  
should make it by Windows way, so You still should create an installer  
which will install application on Windows and make DMG image for Mac.  
Nobody will just put application to Program Files like on Mac :) Vista  
will be very unhappy on doing this.


More information about the Mono-osx mailing list