El dj 24 de 03 del 2005 a les 16:20 +0100, en/na Luc Andre va escriure: > Hi, > > I'm new to mono and I'm investigating mono to see if it can help writing > true cross platform applications for Windows/MacOSX/Linux. > > I tried to compile a sample GUI C# Application with mcs under Windows and I > got the error: > > $ mcs DoughnutMachine.cs > DoughnutMachine.cs(44) error CS0234: The type or namespace name `Windows' > could not be found in name space `System' > > The line involved is: > private System.Windows.Forms.Timer timer1; > > > It seems that mcs does not handle System.Windows.Forms but it was supposed > to (I installed version 1.1.4). > > Does anybody knows what I'm doing wrong ? > Try:
mcs DoughnutMachine.cs -r:System.Windows.Forms -r:System.Drawing I added also the System.Drawing reference just in case the app uses also classes from that namespace. Jordi, -- Jordi Mas i Hern�ndez - Mono development team - http://www.mono-project.com Homepage and LiveJournal at http://www.softcatala.org/~jmas _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
