You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the grpc unity package in my project. I generate my C# protos outside of unity with bazel using the latest protoc/grpc versions and import them into my project. Recently, I ran into an issue where the generated code was not compatible with the latest grpc-unity package. Here's an example of the error I saw:
error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments
After some digging, I found that this PR (and maybe others) changed the API of the generated code so the packaged Google.Protobuf version in the unity package is not compatible with code files generated with the latest code generation plugins.
Is it possible to update the unity package to use the latest versions?
I am planning to upgrade protobuf in our repository soon, but for your use case, the only thing you need to do is to make sure that you're using compatible versions of protoc, grpc_csharp_plugin and the Google.Protobuf runtime. This should be pretty easy to achieve.
This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!
Context
I am using the grpc unity package in my project. I generate my C# protos outside of unity with bazel using the latest protoc/grpc versions and import them into my project. Recently, I ran into an issue where the generated code was not compatible with the latest grpc-unity package. Here's an example of the error I saw:
After some digging, I found that this PR (and maybe others) changed the API of the generated code so the packaged Google.Protobuf version in the unity package is not compatible with code files generated with the latest code generation plugins.
Is it possible to update the unity package to use the latest versions?
Thanks for your help!
@jtattermusch
The text was updated successfully, but these errors were encountered: