'How to write a protoc plugin to generate c# codes?

I want to write a protoc-gen-... plugin to compile my .proto files into csharp files, however, i can not find any tools like google.golang.org/protobuf/compiler/protogen in golang to help me to do this, so how to write a protoc plugin to generate c# codes?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source