Mono 2.10.x version, Not MonoTouch or Mono for Android

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

efontana2 wrote at 2013-04-29 16:04:

I tried to use OxyPlot with Mono on Linux (2.10.8) and when I run it it complains about:

Mono: Could not load file or assembly 'System.core, Version 2.0.5.0 ...'

Has anyone tried this?

objo wrote at 2013-04-29 18:15:

Try referencing the NET40 version of the OxyPlot core library, maybe using the PCL version is the problem?
Shouldn't PCL assemblies also work with Mono? (I have not tried myself)
http://slodge.blogspot.no/2012/12/cross-platform-winrt-monodroid.html

efontana2 wrote at 2013-04-29 18:56:

Tried that, made no difference, same error:

Mono: The following assembly referenced from /home/cds/eric/op/testoxy/bin/Debug/OxyPlot.dll could not be loaded:
 Assembly:   System.Core    (assemblyref_index=2)
 Version:    2.0.5.0
 Public Key: 7cec85d7bea7798e
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/cds/eric/op/testoxy/bin/Debug/).

Mono: Failed to load assembly OxyPlot[0xb5728fb8]

Mono: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
at (wrapper remoting-invoke-with-check) testoxy.Form1:.ctor ()
at testoxy.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
at (wrapper remoting-invoke-with-check) testoxy.Form1:.ctor ()
at testoxy.Program.Main () [0x00000] in <filename unknown>:0