Re: [protobuf] C# - Can I compile Proto 2 with compiler Proto 3

2019-06-03 Thread Marina Karmely
Thank you guys ! it was very helpful On Sun, Jun 2, 2019 at 9:18 PM Derek Perez wrote: > Ok news to me. I was under the impression the compiler was agnostically > backwards compatible but could be wrong. Also unsure for output language > support outside the base support languages. > On Jun 2,

Re: [protobuf] C# - Can I compile Proto 2 with compiler Proto 3

2019-06-02 Thread Marc Gravell
Unless it has been updated recently, then no - the "protoc"/Google C# implementation is (was?) proto3-only. On Sun, 2 Jun 2019, 17:23 Derek Perez, wrote: > Yes it should be fine, just set syntax = "proto2" in your file, the > compiler understands both I believe. > > On Sun, Jun 2, 2019 at 8:59

Re: [protobuf] C# - Can I compile Proto 2 with compiler Proto 3

2019-06-02 Thread Derek Perez
Yes it should be fine, just set syntax = "proto2" in your file, the compiler understands both I believe. On Sun, Jun 2, 2019 at 8:59 AM Marc Gravell wrote: > If it helps, protobuf-net's schema parser can do this. It is a slightly > different API to the Google implementation, though. > > You can

Re: [protobuf] C# - Can I compile Proto 2 with compiler Proto 3

2019-06-02 Thread Marc Gravell
If it helps, protobuf-net's schema parser can do this. It is a slightly different API to the Google implementation, though. You can test it online at https://protogen.marcgravell.com/ - or the command-line tool is available as a standalone utility via various mechanisms (the standalone

[protobuf] C# - Can I compile Proto 2 with compiler Proto 3

2019-06-02 Thread Marina Karmely
HI Is there some way to compile ptoto 2 with a compiler of proto 3 in VS 2019 for C#? For example it can be done easily in Java(Eclipse and C++) But with the latest version of protoc 3.8.0 when I try to compile proto 2 with compiler of proto 3 I have got the following exception* "C# code