[Mono-winforms-list] mcs and windows forms
Jonathan Pobst
monkey at jpobst.com
Wed May 23 08:42:59 EDT 2007
mcs is for compiling 1.1 code. Use gmcs to compile a 2.0 assembly. You
can also replace the system.data, drawing, and forms statements with
-pkg:dotnet. It should look roughly like:
gmcs form1.cs form1.designer.cs -resource:form1.resx joystick.cs
program.cs /out:main.exe -reference:..\..\..\common\dll\my.dll
-pkg:dotnet
You can also use -r: instead of -reference: if you want.
Jon
8rcjonp02 at sneakemail.com wrote:
> The error message is -
> ** (C:\PROGRA~1\MONO-1~1.4\lib\mono\1.0\mcs.exe:4692): WARNING **:
> Missing method .ctor in assembly
> \Progra~1\Mono-1.2.4\lib\mono\2.0\System.Windows.Forms.dll, type
> System.ComponentModel.InitializationEventAttribute
>
> The command line I'm using is-
> mcs form1.cs form1.designer.cs -resource:form1.rex joystick.cs
> program.cs /out:main.exe -reference:..\..\..\common\dll\my.dll
> -reference:C:\Progra~1\Mono-1.2.4\lib\mono\2.0\System.Data.dll
> -reference:\Progra~1\Mono-1.2.4\lib\mono\2.0\System.Drawing.dll
> -reference:\Progra~1\Mono-1.2.4\lib\mono\2.0\System.Windows.Forms.dll
>
> Im really not sure about this command line.
> What is the correct way to handle the 'form1.rex' file?
> Is there an easier way to do the '-reference:..'?
> Then there's the error message?
>
> Thanks,
>
>
> -----Original Message-----
> From: Sanford Armstrong sanfordarmstrong-at-gmail.com |mono|
> [mailto:...]
> Sent: Wednesday, 23 May 2007 4:42 PM
> To: John Hilton
> Cc: mono-winforms-list at lists.ximian.com
> Subject: Re: [Mono-winforms-list] mcs and windows forms
>
> What is the error message?
>
> On 23 May 2007 05:43:09 -0000, 8rcjonp02 at sneakemail.com
> <8rcjonp02 at sneakemail.com> wrote:
>> I'm trying to compile a c# program written in visual studio with
> 'mcs'.
>> It almost works, but comes up with an error message.
>> Is it currently possible to do this?
>> Could anyone please advise on the best way of doing it? I have typed
> the path and names of all the system.x components on the command line
> but am hoping there is an easier way.
>> thanks.
>> -WinXP-mono1.2.4
>> _______________________________________________
>> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
More information about the Mono-winforms-list
mailing list