我正在尝试在GTK#中使用带有.NET Framework 3.5的Mono.TextEditor程序集。但我一直在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版本构建的。任何帮助?
答案 0 :(得分:1)
您的项目很可能仍然以2.0运行时为目标。 您需要在monodevelop中设置Project / Settings / Build General / Runtime:Mono / .Net 3.5。
如果尚未添加对System.Core的引用,请不要忘记。