azure - 如何修复: The role binaries in your package are using an older version of the Windows Azure SDK

标签 azure

我的辅助角色无法正常工作(本地和云),我怀疑它是在我升级到 Azure SDK 2.2 后出现的。

更大的提示是输出/常规中的消息:

Windows Azure Tools: Warning: The role binaries in your package are using an older version of the Windows Azure SDK. Please consider upgrading.

但是他们所说的“二进制文件正在使用旧版本的 SDK”指的是什么呢?他们指的是我使用的引用文献吗?或者这是 csproj 或 Web/App.config 中的设置?

我的 Worker 角色中有以下引用资料,我认为这些引用资料与 Azure 相关:

Microsoft.ServiceBus                      2.2.0.0
Microsoft.WindowsAzure.Configuration      2.0.0.0
Microsoft.WindowsAzure.ServiceRuntime     2.2.0.0
Microsoft.WindowsAzure.Storage            3.0.0.0

有什么方法可以查看我正在“使用”的 SDK 与他们期望的 SDK 之间的 dll 或“版本”不匹配吗?

任何帮助将不胜感激! 谢谢,

最佳答案

好吧,也许我应该看到这个:您正在使用的 SDK 版本实际上位于解决方案中 Azure 项目的 .ccjproj 中- 所以不是您的WebRole或WorkerRole的.csproj。

如果在文本编辑器中打开[Azure 项目].ccproj,您将看到一个名为 ProductVersion 的属性。我已将我的版本从 1.8 设置为 2.2,一切都再次开始完美运行。

关于azure - 如何修复: The role binaries in your package are using an older version of the Windows Azure SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20302062/

相关文章:

c# - azure-functions 中的程序集引用

c# - Azure 函数的 API 速率限制

iis - 如何更新approot/bin中的DLL

azure - 如何在azure门户中配置多级虚拟目录?

Azure Functions 与 ServiceBus :the operation was canceled

c# - 如何从Azure AD获取asp net core 2.0 JwtBearer token 中的 key 名称

Azure Web 作业 - 授权基本 header

azure - 如何在 Azure DevOps 中的 2 个构建管道之间创建依赖关系并将工作项链接到构建管道?

azure - Azure 函数中的 Autofac 依赖注入(inject)

sql - 如何动态屏蔽通过 Azure 保存为 json 的数据?