/csharp-protogen

Script to parse protobuf *.proto file to C#

Primary LanguageC#Apache License 2.0Apache-2.0

csharp-protogen

Build Status Coverage License

Script to parse protobuf *.proto file to C#

How to use

Put the script on the root of *.csproj that contains the protodef.

Example

solution/
└── protobuf-project/
    ├── protos/
    |   └── message.proto
    ├── protobuf-project.csproj
    └── generate_protos.bat

And run the script generate_protos.bat

cd protobuf-project
generate_protos.bat

Output script

Determining Version of Google.Protobuf.Tools & Grpc.Tools

Searching *.proto ...

echo found message.proto

done