2011-09-29 105 views
0

我想在GTK#中使用.NET Framework 3.5的Mono.TextEditor程序集。不過,我不斷收到System.BadImageFormatExceptionMono.TextEditor不起作用。我究竟做錯了什麼?

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版構建的。任何幫助?

回答

1

大多數情況下,您的項目仍然以2.0運行時爲目標。 你需要在monodevelop中設置Project/Settings/Build General/Runtime:Mono/.Net 3.5。

不要忘記添加對System.Core的引用,如果它尚未添加。

相關問題