【发布时间】:2016-12-21 06:23:51
【问题描述】:
我使用来自Prepare your development environment 的Install the Service Fabric runtime, SDK, and tools for Visual Studio 2015 Update 2 链接安装了Service Fabric。
尝试发布 Service Fabric 应用程序 失败:
2>Connect-ServiceFabricCluster:参数“Connect-ServiceFabricCluster”未被识别为 cmdlet:无法加载
2>DLL 'FabricCommon.dll': 找不到指定的模块。 (HRESULT 异常:0x8007007E)
Troubleshoot your local development cluster setup 中描述的错误相同,但我使用的 PowerShell 版本是 64 还是 32 无关紧要。
我得到的 Service Fabric SDK 版本是2.1.163。
我正在运行带有 Visual Studio 2015 Update 3 的 Windows 10 10586。
FabricCommon.dll 位于c:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\FabricCommon.dll
我错过了什么?
【问题讨论】:
-
当您说“尝试发布”时,您是指使用 PowerShell 还是 Visual Studio?
-
我的意思是 Visual Studio。我通过重启机器解决了这个问题。
-
很高兴知道良好的旧重启仍然可以解决大多数问题。
-
我重新启动了我的机器并且它工作了。