Script to parse protobuf *.proto file to C#
Put the script on the root of *.csproj that contains the protodef.
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