10

I haven't found any concise explanation of this.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
ripper234
  • 31,063
  • 43
  • 82
  • 90
  • What are the other Mono dependencies besides mono-runtime and libmono-system-windows-forms4.0-cil required to run C# Windows Forms applications on Ubuntu Linux 16.04? Thank you. – Frank May 10 '16 at 02:05

4 Answers4

24

So you're looking for a package containing a file called System.Windows.Forms.dll. You can search:

Both methods lead you to (as of Ubuntu 14.04):

Install it with:

sudo apt-get install libmono-system-windows-forms4.0-cil
Melebius
  • 768
  • 1
  • 6
  • 18
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
  • 1
    What are the other Mono dependencies besides mono-runtime and libmono-system-windows-forms4.0-cil required to run C# Windows Forms applications on Ubuntu Linux 16.04? Thank you. – Frank May 10 '16 at 02:05
  • 6
    +1 for teaching me how to fish. – remcycles Jul 21 '18 at 05:26
2

Open Synaptic and search for System.Windows.Forms and select libmono-winforms2.0-cil or libmono-winforms1.0-cil and then apply.

(optional) You might need to install System.Runtime package as well. just search for that and install libmono-system-runtime2.0-cil or libmono-system-runtime1.0-cil

Pi3cH
  • 21
  • 1
1

Found it via this link:

% apt-get install libmono-winforms1.0-cil libmono-winforms2.0-cil
ripper234
  • 31,063
  • 43
  • 82
  • 90
0

Open the references menu, Typing in the left upper size of MonoDevelop's GUI the Word Reference. It'll open a window. There you'll be able to enable the reference System.Windows.Forms. As it's enabled, you'll be able to declare in your code:

Using System.Windows.Forms;

and use it as well. This answer assumes that you've done all the previous in this page.

Greenonline
  • 1,759
  • 7
  • 16
  • 21
Lucas
  • 1
  • 1