[Mono-osx] Adding Monomac capabilities to an existent project

Andrew Brehm ajbrehm at gmail.com
Wed Dec 22 08:19:26 EST 2010



Steve Lessard wrote:
> 
> To elaborate on Andrew's suggestion consider refactoring your project into
> two 
> projects. One project would contain the GUI components. The other would
> contain 
> the business logic. Then you could create a third project that would
> contain 
> the OS X GUI components.  Andrew implied that you should compile the
> business 
> logic into a DLL (and there's nothing wrong with doing that,) but another
> option 
> is to add the business logic project as a reference in your OS X GUI
> project. 
> That way both the GUI and business logic would be compiled into one
> complete 
> assembly. 
> 

Yes, that is the recommended solution.

It can be done step-by-step though.

I am curious. I didn't know I could add a project as a reference and have it
included in the EXE. I usually compile the business logic into a DLL first
and then include the DLL as a reference and end up with an EXE and that DLL
in the bin/Release folder. (With MonoMac it doesn't matter anyway, since
everything is bundled in a .APP folder and it doesn't matter how many files
there are.)

P.S.: I wish Windows supported .APP bundles. Ideally the Windows version of
the program should be in the Contents/Windows folder and the same business
logic DLL could be used.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Adding-Monomac-capabilities-to-an-existent-project-tp3144934p3160594.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list