杉木的园子

C# protogen 处理protobuf生成cs文件

下载protobuf-net,源码地址https://github.com/protobuf-net/protobuf-net/tree/master/src(注意项目工程现在不要用vs2019,暂时支持度不够)。

编译源码。

找到编译后的protogen文件。

运行命令 protogen.exe --csharp_out=.\  sample.proto

 

posted @ 2019-07-18 20:12  杉木2019  阅读(2009)  评论(0编辑  收藏  举报