Marc,
I have a DTO class library which I'm running your precompiler against.
When I attempt to use this to Serialize, I receive the following error:
Type=System.InvalidOperationException Msg=Type is not expected,, and no contract can be inferred: System.RuntimeType StackTrace= [n] at ProtoBuf.Meta.TypeModel.ThrowUnexpectedType(Type type) in c:\Dev\protobuf-net\protobuf-net\Meta\TypeModel.cs:line
Oddly enough, de-serialization works perfectly. I'm not sure if this matters, but the DTO library is also a portable class library. All of the entities within are tagged with ProtoContract and ProtoMember attributes.
Any ideas what the issue might be? Thanks.