开发者

Mono.TextEditor not working. What am I doing Wrong?

开发者 https://www.devze.com 2023-04-09 12:18 出处:网络
I am trying to use the Mono.TextEditor assembly with .NET Framework 3.5 in GTK#. But I keep getting System.BadImageFormatException

I am trying to use the Mono.TextEditor assembly with .NET Framework 3.5 in GTK#. But I keep getting 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.

The MonoDevelop version I am using (Mono.TextEditor is an addon of MonoDevelop) is definitely built by .NET version 3.5. Any Help?


Most possibly your project still targets the 2.0 runtime. You'll need to set Project/Settings/Build General/Runtime: Mono / .Net 3.5 in monodevelop.

Don't forget to add the reference to System.Core, if it isn't already added.

0

精彩评论

暂无评论...
验证码 换一张
取 消