单声道以mscorlib.dll 2.0代替4.0 [英] Mono take mscorlib.dll 2.0 instead of 4.0

查看:151
本文介绍了单声道以mscorlib.dll 2.0代替4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的MONO应用程序有问题,我正在尝试编译项目(使用MonoDevelop),以便加载运行mscorlib.dll 4.0而不是2.0版的库. (我需要版本4.0而不是版本2.0中的System.Type.op_Equality方法.

I am having a problem with an MONO application, I'm trying to compile the project (with MonoDevelop) so as to load the library run mscorlib.dll 4.0 instead of version 2.0. (I need System.Type.op_Equality method that is in version 4.0 but not in 2.0).

我已经通过建立链接暂时解决了问题:

I've temporarily solved by making a link:

# cd /usr/lib/mono/2.0
# mv mscorlib.dll mscorlib.dll.bak
# ln ../4.0/mscorlib.dll mscorlib.dll

但是,这当然不是有效的解决方案.

But of course this is not a valid solution.

有人知道如何单声道加载mscorlib 4.0而不是2.0吗?

Does anyone know how to MONO load mscorlib 4.0 instead of 2.0?

非常抱歉,我的英语水平

Thanks and sorry for my English

推荐答案

最后,我找到了解决此问题的方法:

Finaly I found a solution for this problem:

https://bugs.launchpad. net/ubuntu/+ source/gtk-sharp2/+ bug/884035/comments/14

只需修改"app.config"文件并更改其内容:

Simply modify the "app.config" file and change the content for this:

<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0"/></startup></configuration>

重新编译proyect,现在可以正常工作了.

Recompile the proyect and now work fine.

这篇关于单声道以mscorlib.dll 2.0代替4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆