Reputation: 130
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.
Does anyone know how to MONO load mscorlib 4.0 instead of 2.0?
Thanks and sorry for my English
Upvotes: 3
Views: 2383
Reputation: 130
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.
Upvotes: 3
Reputation: 19335
Right-click the project -> open the Build/General page and make sure Target Framework is Mono / .NET 4.0
:
Upvotes: 1