[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

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