As of now, proto-gen-csharp can not be used because google/api/annotations.proto, gogoproto/gogo.proto and protoc-gen-swagger/options/annotations.proto are not created but necessary for reflection (which can't be removed).
gogoproto/goto.proto can't be generated in C# since it's using proto2 syntax which only got added with Protocol Buffers v3.11.0 which was available starting gRPC v1.27.0. This docker currently targets 1.26.0.
Summary
As of now,
proto-gen-csharp
can not be used becausegoogle/api/annotations.proto
,gogoproto/gogo.proto
andprotoc-gen-swagger/options/annotations.proto
are not created but necessary for reflection (which can't be removed).gogoproto/goto.proto
can't be generated in C# since it's usingproto2
syntax which only got added withProtocol Buffers v3.11.0
which was available startinggRPC v1.27.0
. This docker currently targets1.26.0
.Steps to Reproduce
Add the following to the
proto
target:What do you see now?
What do you want to see instead?
The files should be generated to
proto-gen-csharp
.How do you propose to implement this?
I will update the
Dockerfile
to use the latest set of versions.Can you do this yourself and submit a Pull Request?
I will create a PR myself.