Thank you guys ! it was very helpful On Sun, Jun 2, 2019 at 9:18 PM Derek Perez <[email protected]> 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, 2019, 9:54 AM -0700, Marc Gravell <[email protected]>, > wrote: > > 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, <[email protected]> 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 AM Marc Gravell <[email protected]> >> 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 test it online at https://protogen.marcgravell.com/ - or the >>> command-line tool is available as a standalone utility via various >>> mechanisms (the standalone command-line tool is more versatile than the >>> online version, especially when processing multiple files). >>> >>> On Sun, 2 Jun 2019, 14:44 Marina Karmely, <[email protected]> >>> wrote: >>> >>>> 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 generation only supports proto3 syntax"..* >>>> >>>> *Do you have any advise?* >>>> >>>> -- >>>> 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. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/protobuf/0bc3b2c5-f604-432e-9ad9-c679e40f1455%40googlegroups.com >>>> <https://groups.google.com/d/msgid/protobuf/0bc3b2c5-f604-432e-9ad9-c679e40f1455%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> 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. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/protobuf/CAF95VAyE8hVG8p5qh98ETM91vaaigDbVihXwNX8R1NNb%3DZ3E_A%40mail.gmail.com >>> <https://groups.google.com/d/msgid/protobuf/CAF95VAyE8hVG8p5qh98ETM91vaaigDbVihXwNX8R1NNb%3DZ3E_A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CAKHQeKugxWN6SUN8oJ226UWQ0uLR8RaRGnWWiReEJ1YKFbqprw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
