How can I use System.Windows.Forms in MonoDevelop on Ubuntu?
10,077
Although this was answered in the comments, newbies (like me) might appreciate a more spelled-out version:
- In monodevelop, click the gear/settings icon next to the References folder (or right-click the References folder)
- Select 'Edit References'
- Search for windows
- Check System.Windows.Forms
- Click OK
Author by
Moojehe
Updated on June 04, 2022Comments
-
Moojehe almost 2 years
I met this problem at the beginning of my work. I am using Mono 2.10 with MonoDevelop 2.8. When I create a new C# project, I can not use:
using System.Windows.Forms
because there is no such namespace here.
I searched for some answer and tried:
apt-get install libmono-system-windows-forms4.0-cil
andapt-get install libmono-winforms2.0-cil
but they all tell me I have installed them. So now I'm wondering if I can not write windows forms application with Mono but I can only run such application with it?