C# protogen 处理protobuf生成cs文件

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

编译源码。

找到编译后的protogen文件。

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

猜你喜欢

转载自www.cnblogs.com/shanmu2019/p/11209717.html