Protogen Vs. Protoc Compiler Options

后端 未结 1 337
情深已故
情深已故 2021-01-22 04:27

I have some .proto files used to compile classes from Java, C++ and C#. For Java and C++ I use the Protoc compiler and for the C# I use Protogen. The scripts for the Java/C++ cl

1条回答
  •  粉色の甜心
    2021-01-22 05:17

    If I have understood the question correctly, then there isn't really an "equivalent" option - they are different tools with different intended uses. If your main driver is like-for-like usage you might want to look at protobuf-csharp-port, which retains a very similar usage while moving to C#. By contrast, protobuf-net makes no attempt to present the same API as google - it acts as an idiomatic .NET serializer that happens to talk in the protobuf format.

    0 讨论(0)
提交回复
热议问题