[protobuf] Protogen and wcf json serialization

2014-07-15 Thread Neta Nir
Hello, We are using Protogen in .Net environment. The auto generated class from protgen is used as a response in a service contract between a wcf service (http binding) and a browser client. WCF uses JSON serializer, the built in. The problem we are having is that the c# Response class

[protobuf] Can I customize the protoc (protobuf compiler) ?

2014-07-15 Thread kash5690
Hi, I am looking for ways to use protobuf with ODB (an ORM tool). The c++ header file generated by protoc will be given as input to ODB which will compile it to produce the db schema. However, ODB compiler needs few ODB tags in place in the C++ header file like - #pragma db object just before

Re: [protobuf] Protogen and wcf json serialization

2014-07-15 Thread Marc Gravell
This is specifically protobuf-net; firstly, you should be able to add -p:lightFramework to the command - that omits a few things that don't work on all frameworks, including [Serializable] iirc. However, you can also just edit CSharp.xslt to make any necessary changes. Stick it alongside