如果我的gRPC项目中缺少Google.Api.AnnotationsReflection,我错过了哪个库?

时间:2017-12-13 15:37:48

标签: c# protocol-buffers grpc

我使用我创建的项目使用Protoc工具版本1.7.2构建了一些protocal缓冲区,遵循以下教程: https://grpc.io/docs/quickstart/csharp.html#update-and-run-the-application

从.proto文件生成的代码吐出这一行:     new pbr :: FileDescriptor [] {global :: Google.Api.AnnotationsReflection.Descriptor,},

我尝试将所有nuget依赖项更新为1.8.0。仍然缺少这个库。该术语过于通用,无法通过网络搜索找到任何有用的内容。

我需要包含哪些内容才能使其正常工作?

2 个答案:

答案 0 :(得分:2)

安装软件包" Google.Api.Gax.Grpc"。

从Visual Studio中的程序包管理器控制台中选择您的项目,然后运行: 安装包Google.Api.Gax.Grpc

答案 1 :(得分:0)

安装nuget程序包“ Google.Api.CommonProtos”是可行的,我认为它已从“ Google.Api.Gax.Grpc”中删除

相关问题