[Mono-winforms-list] Beginners Advice - Compiling for MAC

Stifu stifu at free.fr
Mon Jan 4 04:43:09 EST 2010




BsWeb wrote:
> 
> 
> 
> Stifu wrote:
>> 
>> 
>> BsWeb wrote:
>>> 
>>> 
>>> Andrew Brehm wrote:
>>>> 
>>>> 
>>>> 
>>>> BsWeb wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I have to port a windows project to run on MAC OX. I have got a test
>>>>> .net app open in mono develop and it runs against the mono runtime.
>>>>> When I come to 'create package' it only gives me options for windows
>>>>> and linux, no MAC. What do I need to do?
>>>>> 
>>>>> Many thanks.
>>>>> 
>>>> 
>>>> MAC?
>>>> 
>>>> Generally, compatible .NET programs should run unmodified on Mac OS X.
>>>> 
>>>> You can use the command line tool "macpack" to create a Mac OS X bundle
>>>> (whatever.app) based on your .NET application. But first run it with
>>>> mono yourprogram.exe to see if it is compatible.
>>>> 
>>>> Ideally you would want a native GUI, of course, but that would
>>>> (currently) require you to replace all the Windows.Forms code with
>>>> Cocoa calls.
>>>> 
>>>> 
>>>> 
>>> 
>>> Thanks for the message. I however have very limit MAC knowledge. 
>>> 
>>> 'command line tool "macpack"'
>>> 
>>> Where do I find this, on a MAC or in Windows?
>>> 
>> 
>> This is a command that comes with Mono, so either Mac or Windows.
>> See:
>> http://www.mono-project.com/Guide:Running_Mono_Applications#macpack_.28Mac_OS_X_only.29
>> 
> 
> Thanks for that. I'm however a VB.net programmer and never use the command
> line. Just spent an hour trying to get a simple windows form in c# to
> complie let alone package it! Could any body give some step by step
> instructions? My app is at c:\monotext\form1.cs. It has a button on it and
> i get the error The name 'InitializeComponent' does not exist in this
> current context
> 

First, you can compile it on Windows (with Visual Studio, for example), you
don't have to do it with Mono. If you want to do it with Mono, you could
just do it through MonoDevelop (if that's not what you were already doing).
If you still can't get your app to compile, it would help if we could have a
look at it.
-- 
View this message in context: http://old.nabble.com/Beginners-Advice---Compiling-for-MAC-tp26948770p27010694.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list