小编Ham*_*mmy的帖子

无法在c#中运行Google Cloud PubSub,DLL问题

我正在努力将 Google Cloud PubSub 集成到我的 c# 项目中,我使用 NuGet 安装1.0.0-beta11,没有任何错误。当我运行我的项目并到达使用 pubsub 的代码时,出现以下错误:

An unhandled exception of type 'System.IO.FileLoadException' occurred in 
 Google.Api.Gax.dll

Additional information: Could not load file or assembly 'Google.Apis.Auth, Version=1.21.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Run Code Online (Sandbox Code Playgroud)

NuGet确实安装了包括Google.Apis.Auth.dll在内的所有依赖项,但它是1.27.1。我已经尝试了我能想到的一切,包括获取该 dll 的 1.21.0 并使用它,但没有成功。我已经能够很好地运行.net 示例,没有错误。

有什么想法吗?如果您需要更多信息,请告诉我

c# nuget google-cloud-pubsub

5
推荐指数
1
解决办法
2035
查看次数

标签 统计

c# ×1

google-cloud-pubsub ×1

nuget ×1