当我编译包含 16 个 Service Fabric 应用程序的解决方案时,Visual Studio 有时会挂起其中的几个(2 或 3 个)。
错误列表中的消息:
The project output folder is being used by a Service Fabric application. The fabric application didn't release the lock on the output folder within 00:02:00 minutes.
输出窗口中的文本:
Build started 8/31/2017 11:11:20 AM.
_WaitForServiceFabricApplicationCleanupBeforeBuild:
Waiting for output folder cleanup...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Service Fabric Tools\Microsoft.VisualStudio.Azure.Fabric.ServiceProject.targets(28,5): error : The project output folder is being used by a Service Fabric application. The fabric application didn't release the lock on the output folder within 00:02:00 minutes.
Build FAILED.
我知道原因与本地集群有关,但它是重要的工具,我想继续使用。
Visual Studio 2015 更新 3。
微软Azure服务结构5.6.220.9494
微软 Azure Service Fabric SDK 2.6.220.9494
本地集群工作在1节点模式。
最佳答案
作为解决此问题的解决方法,您可以尝试仅使用一个线程构建项目。在 Visual Studio 中转到
工具 -> 选项 -> 项目和解决方案 -> 构建和运行
并设置并行项目构建的最大数量 = 1
关于visual-studio - 错误: The project output folder is being used by a Service Fabric application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45977206/