Protocol buffers in C# projects using protobuf-net - best practices for code generation

前端 未结 6 1516
盖世英雄少女心
盖世英雄少女心 2021-01-31 05:35

I\'m trying to use protobuf in a C# project, using protobuf-net, and am wondering what is the best way to organise this into a Visual Studio project structure.

When manu

6条回答
  •  别那么骄傲
    2021-01-31 06:12

    I have attached a quick and dirty Visual Studio Custom Tool wrapper around ProtoGen.exe to the Google Code page for this issue (http://code.google.com/p/protobuf-net/issues/detail?id=39). This makes adding .proto files to C# projects extremely easy.

    See the readme in the attachment for more info.

提交回复
热议问题