C# 如果我的gRPC项目中缺少Google.Api.AnnotationsReflection,我会缺少哪个库?

C# 如果我的gRPC项目中缺少Google.Api.AnnotationsReflection,我会缺少哪个库?,c#,protocol-buffers,grpc,C#,Protocol Buffers,Grpc,我使用Protoc工具1.7.2版构建了一些protocal缓冲区,使用的是我根据以下教程创建的项目: 从.proto文件生成的代码显示以下行: 新pbr::FileDescriptor[]{global::Google.Api.AnnotationsReflection.Descriptor,} 我已尝试将所有nuget依赖项更新为1.8.0。仍然错过这个图书馆。这个词太笼统了,在网络搜索中找不到任何有用的东西 我需要包括哪些内容才能使其正常工作?安装程序包“Google.Api.Gax.G

我使用Protoc工具1.7.2版构建了一些protocal缓冲区,使用的是我根据以下教程创建的项目:

从.proto文件生成的代码显示以下行: 新pbr::FileDescriptor[]{global::Google.Api.AnnotationsReflection.Descriptor,}

我已尝试将所有nuget依赖项更新为1.8.0。仍然错过这个图书馆。这个词太笼统了,在网络搜索中找不到任何有用的东西

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

安装程序包“Google.Api.Gax.Grpc”

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

安装nuget程序包“Google.Api.CommonProtos”是可行的,我相信它已经从“Google.Api.Gax.Grpc”中删除了。

这个问题实际上与Grpc无关。看起来有些.proto文件正在导入“google/api/annotations.proto”(而google.api.annotations.reflection.descriptor的描述符是在annotations.proto编译时生成的-您1.)忘记为annotations.proto生成代码了吗2.)项目中没有包含为annotations.proto生成的c#文件吗?