I am attempting to use the same .proto file (protobuf) for a C# and a C++ project. My problem is that the C# file requires an import and some options set (protobuf-csharp-port) while the C++ file doesn't.
Is there any way I can tell protoc to ignore imports/options under certain circumstances?
Currently my only way around this is to create two different .proto files, and update both when changes are made.