找不到类型或命名空间 EventProcessorClient
The type or namespace EventProcessorClient could not be found
我开始使用带有 .Net Core 的事件中心,并且在尝试编写与官方 MS 文档 (https://docs.microsoft.com/en-us/azure/event-hubs/get-started-dotnet-standard-send-v2) 中相同的代码时遇到了一个非常特殊的问题。事件接收器代码抛出一个错误,尽管我正在使用它包含名称空间,即 Azure.Messaging.EventHubs。我哪里错了?
确保您已经导入了正确的 Nuget 包,如下所示。
您需要安装 Azure.Messaging.EventHubs.Processor
作为项目的依赖项。尽管上面的答案是正确的,但我只是附上了 link.
我开始使用带有 .Net Core 的事件中心,并且在尝试编写与官方 MS 文档 (https://docs.microsoft.com/en-us/azure/event-hubs/get-started-dotnet-standard-send-v2) 中相同的代码时遇到了一个非常特殊的问题。事件接收器代码抛出一个错误,尽管我正在使用它包含名称空间,即 Azure.Messaging.EventHubs。我哪里错了?
确保您已经导入了正确的 Nuget 包,如下所示。
您需要安装 Azure.Messaging.EventHubs.Processor
作为项目的依赖项。尽管上面的答案是正确的,但我只是附上了 link.