Azure 计算模拟器在升级到 2.8 版后停止工作,先决条件错误

Azure compute emulator stopped working after upgrade to version 2.8, prerequisite error

我今天将我的 azure sdk 从 2.5 升级到 2.8 版,此后一直无法运行计算模拟器。

我收到一个弹出窗口,指示

"The system is missing a prerequisite to execute the service."

当我查看输出屏幕时,我看到以下消息在屏幕上滚动:

"Microsoft Azure Tools: Error: The installed Microsoft Azure Compute Emulator does not support the role binaries. Please install the latest Microsoft Azure Compute Emulator and try again. Microsoft Azure Tools: Warning: The role binaries in your package are using an older version of the Microsoft Azure SDK. Please consider upgrading."

由于我有多个角色实例,因此我无法确定哪个(哪些)可能是罪魁祸首或问题所在。

奇怪的是我使用 nuget 更新了所有引用。我注意到的一件事是 Microsoft.WindowsAzure.ServiceRuntime.dll 似乎有一个版本 2.7.0.0,即使它位于一个名为 v2.8 的目录中。另外两个 dll 绑定到 azure,Microsoft.WindowsAzure.Diagnostics(2.8.0.0) 和 Microsoft.WindowsAzure.Storage(6.2.0.0) 似乎指向其他版本。

我不确定问题是我必须重新指向这些 dll,还是存在更深层次的问题?

您仍然需要对您的 Azure 发布项目执行工具升级。右键单击您的 Azure 发布项目(*.ccproj 类型?)和 select Properties

在此屏幕上,select 应用程序并单击 Upgrade 按钮。我附上了一个屏幕截图,显示我有一个项目需要从 2.7 升级到 2.8。最右边的红色圆圈是你应该右键点击的项目(我不知道实际的项目类型名称)。