【问题标题】:Assembly reference missing in my project我的项目中缺少装配参考
【发布时间】:2011-08-24 15:39:42
【问题描述】:

在我的项目中,我需要使用这个命名空间:

using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

但是当我编译时,我得到一个错误:The type or namespace name 'xxx' does not exist in the namespace 'System.Windows'. Are you missing an assembly reference ?

我尝试添加此引用,但未在列表中找到。

我能做什么?

提前感谢您的回复。

【问题讨论】:

  • 我猜你正在使用 Monodevelop?您使用的是什么发行版?哪个单声道版本?你确定你安装了 System.Windows.Forms 库吗? (例如在 Ubuntu 上它可能没有安装,因为 Monodevelop 不依赖它)
  • 是的,我正在使用 Monodevelop 2.5.90 和 Mono 2.10.4。我在 Ubuntu 上有 System.Windows.Forms。我想我需要得到月光,不是吗?

标签: mono assemblies reference


【解决方案1】:

您尝试引用的命名空间是 WPF 库(PresentationFramework.dllPresentationCore.dll)的一部分,而 Mono(和 no changes to this are planned so far根本没有实现这些库。抱歉,不支持完整的 WPF - 您必须坚持使用 Silverlight 提供的功能。

【讨论】:

  • 还是这样吗? go-mono.com/status/… 建议现在应该实施,但我不明白是从哪个版本开始的。
  • 不幸的是,课程状态页面不再自动生成(页面顶部的时间戳现在显示“810 天前”)。上次更新是在 Mono 2.11.0 发布之前。
猜你喜欢
  • 2011-07-01
  • 1970-01-01
  • 2014-12-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-24
  • 2016-02-15
相关资源
最近更新 更多