Mono take mscorlib.dll 2.0 instead of 4.0

后端 未结 2 922
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 07:37

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.

相关标签:
2条回答
  • 2021-01-14 07:58

    Right-click the project -> open the Build/General page and make sure Target Framework is Mono / .NET 4.0:

    enter image description here

    0 讨论(0)
  • 2021-01-14 08:22

    Finaly I found a solution for this problem:

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

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

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

    Recompile the proyect and now work fine.

    0 讨论(0)
提交回复
热议问题