mgazb
October 11th, 2007, 03:48 PM
I'm just starting learning c# and mono. I've written a command line hello world but am having trouble with a GUI version.
If I add
using System.Windows.Forms;
then mcs fails to compile it. It can't find dotnet if I add it to the command line.
dwhs1@gloin:~/mono$ mcs /pkg:dotnet blah.cs
Package dotnet was not found in the pkg-config search path.
Perhaps you should add the directory containing `dotnet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dotnet' found
Where can I get the dotnet package?
If I explicitly include the forms library
mcs -r:/usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll blah.cs
I get a different lot of errors.
Is there a way of including winforms in a mono build?
If I add
using System.Windows.Forms;
then mcs fails to compile it. It can't find dotnet if I add it to the command line.
dwhs1@gloin:~/mono$ mcs /pkg:dotnet blah.cs
Package dotnet was not found in the pkg-config search path.
Perhaps you should add the directory containing `dotnet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dotnet' found
Where can I get the dotnet package?
If I explicitly include the forms library
mcs -r:/usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll blah.cs
I get a different lot of errors.
Is there a way of including winforms in a mono build?