【问题标题】:Mono.TextEditor not working. What am I doing Wrong?Mono.TextEditor 不工作。我究竟做错了什么?
【发布时间】:2011-09-29 10:52:34
【问题描述】:

我正在尝试在 GTK# 中将 Mono.TextEditor 程序集与 .NET Framework 3.5 一起使用。但我不断收到System.BadImageFormatException

Could not load file or assembly 'Mono.TextEditor, Version = 1.0.0.0,Culture = neutral, 
PublicKey Token = null' or one of its dependencies. This assembly is built by a runtime
newer than the currently loaded runtime and cannot be loaded.

我使用的 MonoDevelop 版本(Mono.TextEditor 是 MonoDevelop 的一个插件)肯定是由 .NET 3.5 版构建的。有什么帮助吗?

【问题讨论】:

    标签: c# .net .net-3.5 mono gtk#


    【解决方案1】:

    您的项目很可能仍以 2.0 运行时为目标。 您需要在 monodevelop 中设置 Project/Settings/Build General/Runtime: Mono / .Net 3.5。

    如果尚未添加对 System.Core 的引用,请不要忘记添加。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-17
      • 1970-01-01
      • 2013-08-06
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 2019-12-23
      • 2016-05-27
      相关资源
      最近更新 更多