Using the same .proto file for a C # and C ++ project

I am trying to use the same .proto file (protobuf) for C # and a C ++ project. My problem is that the C # file requires import and some parameters (protobuf-csharp-port), but the C ++ file does not.

Is it possible to tell the channel to ignore import / parameters in certain circumstances?

Currently, my only way is to create two different .proto files and update them when changes are made.

+3
source share
2 answers

Ah, this chestnut: (

, . , . : " , : , ". , .

, # ++, ++ #. , . ++, Java # .

, #, , ...

+2

, #, ?

0

Source: https://habr.com/ru/post/1754210/


All Articles