我的辅助角色无法正常工作(本地和云),我怀疑它是在我升级到 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/