gtk#在monodevelop升级到Ubuntu 11.10之后不再工作了 [英] Gtk# in monodevelop not working anymore after upgrading to ubuntu 11.10 unity

查看:241
本文介绍了gtk#在monodevelop升级到Ubuntu 11.10之后不再工作了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些使用GTK#用户界面的monodevelop程序,在ubuntu 11.04中运行平稳,没有统一性。我已统一升级到unbuntu 11.10。现在我得到以下错误:
无法找到类型或命名空间名称'Gtk',您是否缺少程序集引用?。
实际上,在我的参考文献中,参考值atk-sharp,gdk-sharp,glade-sharp,glid-sharp,stk-sharp和pango-sharp是红色的,我不能重新添加它们。

I had some monodevelop programs with a GTK# user interface running smoothly in ubuntu 11.04 wihtout unity. I have upgraded to unbuntu 11.10 with unity. Now I get the following error: "The type or namespace name 'Gtk' could not be found. Are you missing an assembly reference?". And indeed in my references the references atk-sharp, gdk-sharp, glade-sharp, glid-sharp, stk-sharp and pango-sharp are colored red and I can't re-add them.

如果我在软件中搜索以gtk-sharp安装,那么它会告诉我安装了Gtk#2.10。
如果我在monodevelop中启动一个新的gtk项目,它会给出相同的错误。

If I search in the softwere to install at gtk-sharp then it tells me Gtk# 2.10 is installed. If I start a new gtk project in monodevelop it gives the same errors.

有人知道如何解决这个问题吗?
谢谢!

Does someone know how to fix this? Thanks!

推荐答案

此问题归因于Mono运行时版本。请将Mono / .NET 3.5的Mono运行时版本更改为Mono / .NET 4.0以解决此问题。

This issue is due to Mono runtime version. Please change Mono runtime version of the project from Mono/.NET 3.5 to Mono/.NET 4.0 to fix this issue.

为此,请按照以下步骤操作:使用解决方案资源管理器启动项目选项对话框。
$ b

For this, please follow the steps as given below:


  1. 选择常规项目设置
  2. 将运行时版本更改为Mono / .NET 4.0。

  3. MonoDevelop将当前项目升级为Visual Studio 2010
    等值。然后,重建项目并验证结果。

这篇关于gtk#在monodevelop升级到Ubuntu 11.10之后不再工作了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆