C # protogen processing protobuf generate cs file

Download protobuf-net, source address https://github.com/protobuf-net/protobuf-net/tree/master/src ( note project now do not use vs2019, temporary support is not enough).

Compile the source code.

protogen find the file after compilation.

Run the command protogen.exe --csharp_out =. \ Sample.proto

 

Guess you like

Origin www.cnblogs.com/shanmu2019/p/11209717.html