Are you sure it's not "form1.resx" (note the "s")? Sandy
On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > That works better but there's still a problem. It gives the following > error message- > error CS1566: Error reading resource file `form1.rex' > Compilation failed: 1 error(s), 0 warnings > > John > > -----Original Message----- > From: Jonathan Pobst monkey-at-jpobst.com |mono| > [mailto:...] > Sent: Wednesday, 23 May 2007 10:43 PM > To: John Hilton > Cc: [email protected] > Subject: Re: [Mono-winforms-list] mcs and windows forms > > 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 > > > [EMAIL PROTECTED] 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: [email protected] > > Subject: Re: [Mono-winforms-list] mcs and windows forms > > > > What is the error message? > > > > On 23 May 2007 05:43:09 -0000, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> 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 - [email protected] > >> http://lists.ximian.com/mailman/listinfo/mono-winforms-list > >> > > _______________________________________________ > > Mono-winforms-list maillist - [email protected] > > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > > > > > > _______________________________________________ > Mono-winforms-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
