Please include an e-mail address if this might need a dialogue!
==============================================================
andrew@bindon.org
What steps will reproduce the problem?
======================================
1. Compile the attached c# VS2010 DTO project
(I think you will need Xamarin iOS trial or above installed to open the
project).
2. Run the "precompiler" against the compiled DLL from (1.) using a command
line such as:
precompile "C:\Users\Marc\Documents\Visual Studio
2012\Projects\Protobuf-Problem\bin\iPhone\Debug\Protobuf-Problem.dll"
-t:MySerializer
-o:MySerializer.dll
What is the expected output? What do you see instead?
=====================================================
DTO project builds successfully.
But when running the precompile console app,
the window displays: "No serializer defined for type: " and then there is
nothing after the colon.
Full output is:
protobuf-net pre-compiler
Detected framework: MonoTouch\v4.0
Resolved C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoTouch\v4.0\mscorlib.dll
Resolved C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoTouch\v4.0\System.dll
Resolved C:\Users\andrew\Documents\Visual Studio
2012\Projects\Protobuf-Problem\bin\iPhone\Debug\protobuf-net.dll
Adding Protobuf_Problem.BagOfEvil...
Adding Protobuf_Problem.OneTwo`1...
No serializer defined for type:
at ProtoBuf.Meta.ValueMember.BuildSerializer() in
C:\Users\x\Documents\protobuf-net r651\protobuf-net\Meta\ValueMember.cs:line 329
at ProtoBuf.Meta.ValueMember.get_Serializer() in
C:\Users\x\Documents\protobuf-net r651\protobuf-net\Meta\ValueMember.cs:line 198
at ProtoBuf.Meta.MetaType.BuildSerializer() in
C:\Users\x\Documents\protobuf-net r651\protobuf-net\Meta\MetaType.cs:line 470
at ProtoBuf.Meta.MetaType.get_Serializer() in C:\Users\x\Documents\protobuf-net
r651\protobuf-net\Meta\MetaType.cs:line 384
at ProtoBuf.Meta.RuntimeTypeModel.BuildAllSerializers() in
C:\Users\x\Documents\protobuf-net
r651\protobuf-net\Meta\RuntimeTypeModel.cs:line 842
at ProtoBuf.Meta.RuntimeTypeModel.Cascade() in
C:\Users\x\Documents\protobuf-net
r651\protobuf-net\Meta\RuntimeTypeModel.cs:line 929
at ProtoBuf.Precompile.PreCompileContext.Execute() in
C:\Users\x\Documents\protobuf-net r651\precompile\Program.cs:line 397
at ProtoBuf.Precompile.Program.Main(String[] args) in
C:\Users\x\Documents\protobuf-net r651\precompile\Program.cs:line 32
What version of the product are you using? On what operating system?
====================================================================
protobuf-net r651
Windows8
VS2010
Xamarin iOS to build the DTO project
Please provide any additional information below.
===============================================
As per our conversation here:
http://stackoverflow.com/questions/17478931/do-custom-generic-types-work-with-pr
ecompile
Original issue reported on code.google.com by andrew.b...@gmail.com on 5 Jul 2013 at 2:48
Original issue reported on code.google.com by
andrew.b...@gmail.com
on 5 Jul 2013 at 2:48Attachments: