I had a similar discussion some months ago. What you want is to generate 
the TypeRegistry at Runtime. I did this by using the following approach:

https://groups.google.com/d/msg/protobuf/fnhsS9tVhyc/9pkapOl-AQAJ

Therefore you don't have to gereate the file descriptors but just use the 
ones you already have at runtime. This worked, but needed to also generate 
partial classes for the Reflection classes which implement just the 
IReflection interface (just containing the Descriptor property). This would 
work as general solution, but right now I'm not using it since I found it 
better to just have a method in my code to return the FileDescriptors they 
are needing to have registered. Since I know all modules I don't have to 
rely on reflection.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to