I'm using protobuf-net for serializing my data. Everything works fine under Windows, I use Mono to run the sample project under Linux but seems it is not straightforward.
I receive following error:
Missing method Skip in assembly /home/***/Debug/Di3.dll, type System.Linq.Enumerable Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
The exception is thrown at following line:
var instance = new ToSerializeClass();
And the class is defined as:
[ProtoContract]
public class ToSerializeClass
{
internal ToSerializeClass()
{// it seems that the protobuf net needs this constructor.
}
[ProtoMember(1)]
internal int omega { set; get; }
[ProtoMember(2)]
internal List<Lambda> lambda { set; get; }
}
I copy the debug/deploy folder to linux, replace the protobuf-net.dll and protobuf-net.xml with the ones published for Mono and call my program using Mono.
Am I missing any points here?