我如何使用的MonoDevelop System.Windows.Forms的在Ubuntu?如何使用、MonoDevelop、System、Ubuntu

2023-09-04 01:00:38 作者:Kennedy 狂妄

我遇到了这个问题,在我的工作的开始。我使用单声道2.10 MonoDevelop的2.8。 当我创建一个新的C#项目,我不能用:

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:

使用System.Windows.Forms的

,因为没有这样的空间在这里

because there is no such namespace here.

我搜索了一些答案,并试图:

I searched for some answer and tried:

的apt-get安装libmono系统 - 窗口forms4.0-CIL

的apt-get安装libmono-winforms2.0-CIL

但他们都告诉我,我已经安装了他们。所以,现在我想知道如果我不能写Windows窗体应用程序具有单声道,但我只用它运行这样的应用程序?

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?

推荐答案

虽然这在评论中有人接听,新手(比如我)可能AP preciate更拼写出的版本:

Although this was answered in the comments, newbies (like me) might appreciate a more spelled-out version:

在MonoDevelop中,点击齿轮/设置图标旁边的引用文件夹(或右键单击引用文件夹) 选择编辑参照 在搜索窗口 检查System.Windows.Forms的 单击OK(确定)