Hi I am trying to get the precompiler.exe to work and it keeps failing. 
Here is a sample of my output
mono ~/Downloads/protobuf-net/Precompile/precompile.exe LibraryTest.dll 
-o:~/workrepos/csharp/LibraryTest/LibraryTest/bin/Debug/MySerializer.dll 
-t:MySerializer
protobuf-net pre-compiler

No framework specified; defaulting to 2.0.50727.1433
Resolved 
/Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/2.0/mscorlib.dll
Resolved 
/Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/2.0/System.dll
Resolved protobuf-net.dll
Adding BarData...
..
Adding FooData...
Adding System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[ProtoData, LibraryTest, 
Version=1.0.5024.32752, Culture=neutral, PublicKeyToken=null]]...
Adding System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.List`1[[System.String,
 
mscorlib, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089]], mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089]]...
Adding System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089]]...
Adding System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089]]...
Compiling MySerializer to 
~/workrepos/csharp/LibraryTest/LibraryTest/bin/Debug/MySerializer.dll...
Argument cannot be null.
Parameter name: member
  at ProtoBuf.Compiler.CompilerContext.CheckAccessibility 
(IKVM.Reflection.MemberInfo member) [0x00000] in <filename unknown>:0
  at ProtoBuf.Compiler.CompilerContext.EmitCall (IKVM.Reflection.MethodInfo 
method) [0x00000] in <filename unknown>:0
  at ProtoBuf.Serializers.TypeSerializer.WriteFieldHandler 
(ProtoBuf.Compiler.CompilerContext ctx, IKVM.Reflection.Type expected, 
ProtoBuf.Compiler.Local loc, CodeLabel handler, CodeLabel continue, 
IProtoSerializer serializer) [0x00000] in <filename unknown>:0
  at 
ProtoBuf.Serializers.TypeSerializer.ProtoBuf.Serializers.IProtoSerializer.EmitRead
 
(ProtoBuf.Compiler.CompilerContext ctx, ProtoBuf.Compiler.Local valueFrom) 
[0x00000] in <filename unknown>:0
  at ProtoBuf.Meta.RuntimeTypeModel.WriteSerializers 
(ProtoBuf.Meta.CompilerOptions options, System.String assemblyName, 
IKVM.Reflection.Emit.TypeBuilder type, System.Int32& index, System.Boolean& 
hasInheritance, .SerializerPair[]& methodPairs, 
ProtoBuf.Compiler.ILVersion& ilVersion) [0x00000] in <filename unknown>:0
  at ProtoBuf.Meta.RuntimeTypeModel.Compile (ProtoBuf.Meta.CompilerOptions 
options) [0x00000] in <filename unknown>:0
  at ProtoBuf.Precompile.PreCompileContext.Execute () [0x00000] in 
<filename unknown>:0
  at ProtoBuf.Precompile.Program.Main (System.String[] args) [0x00000] in 
<filename unknown>:0

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to