Re: [protobuf] building .proto files from Visual Studio 2010 for C#

2011-09-05 Thread Lars Schouw
I found this link http://stackoverflow.com/questions/453820/protocol-buffers-in-c-projects-using-protobuf-net-best-practices-for-code-gene/1139289#1139289 On Mon, Sep 5, 2011 at 9:12 PM, Marc Gravell marc.grav...@gmail.com wrote: It is a pain that it is so hard to set up a Custom Tool in VS; I

Re: [protobuf] building .proto files from Visual Studio 2010 for C#

2011-09-05 Thread Lars Schouw
Well well what have we here... http://code.google.com/p/protobuf-net/source/browse/trunk/ProtoBufGenerator/ProtoBufTool.cs?r=258 On Mon, Sep 5, 2011 at 9:28 PM, Lars Schouw l...@schouw.com wrote: I found this link http://stackoverflow.com/questions/453820/protocol-buffers-in-c-projects-using

Re: [protobuf] protocol buffer message to and from an XPathDocument

2011-07-21 Thread Lars Schouw
I am trying to port protobuf-codecto c# now working against protobuf-net. In Google official Java implementaion I have *com.google.protobuf.Message* when is the equivalent in protobuf-net? Lars -- You received this message because you are subscribed to the Google Groups Protocol Buffers

[protobuf] comiler error from generated .proto file

2011-07-08 Thread Lars Schouw
I am getteing an error error CS1001: Identifier expected when I generate a .cs file from this .proto file. How can I fix this and make it compile? person.proto message Person { required int32 id = 1; optional string name = 2; optional string motto = 3 [default=When the cat is away, the mouse

[protobuf] java and dotnet

2011-07-08 Thread Lars Schouw
How do I construct protobuf-net messages from protostuff messages and visa versa? I am using protostuff from dotnet and this seems to work by using ikvm to call Java from C#. But I would like to move the java message objects back into my native net protobuffer framework, What is the

Re: Re:Re: [protobuf] Re: Is any method available to convert a protobuf object to XML?

2011-06-27 Thread Lars Schouw
When you say managed C++ what kind of library are you using? A C++ one? Can't you wrap that in a Managed C++ layer? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To view this discussion on the web visit

[protobuf] Re: Is any method available to convert a protobuf object to XML?

2011-06-24 Thread Lars Schouw
Yes, for example in C# you can do like this to create an XPathDocument using the protobuf-net lib. public static XPathDocument Serialize(ProtocolBufferMesage msg) { XPathDocument xmlDoc = null; Serializer.PrepareSerializerTest(); XmlSerializer x = new

[protobuf] abstract

2011-04-15 Thread Lars Schouw
Can I specify that the message is abstract so I can implemented it at will on my client? This is possible in XSD schemas. Lars -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To

[protobuf] reflection like xpath

2011-04-12 Thread Lars Schouw
I am trying to lookup message values from strings, like Xpath For XML messages. I can see there is a Reflection class but I am not sure how to use it. In my currenct setup I am using the protobuf-net (http:// code.google.com/p/protobuf-net/). Thank you Marc Gravell, and have defined a foo.proto