I haven't found any concise explanation of this.
- 807,993
- 194
- 1,674
- 2,175
- 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 Answers
So you're looking for a package containing a file called System.Windows.Forms.dll. You can search:
- on your machine:
apt-file search System.Windows.Forms.dll(theapt-filepackage must be installed) - online: at packages.ubuntu.com.
Both methods lead you to (as of Ubuntu 14.04):
Install it with:
sudo apt-get install libmono-system-windows-forms4.0-cil
- 768
- 1
- 6
- 18
- 807,993
- 194
- 1,674
- 2,175
-
1What 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
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
- 21
- 1
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.
- 1,759
- 7
- 16
- 21
- 1
- 1