从 tfs 调用时服务结构包命令失败

service fabric package command fails when called from tfs

构建服务结构时,打包命令在本地计算机中运行文件,但在 TFS/VSTS 中作为构建步骤添加时失败。 我们正在使用 onPrem 构建代理。

dotnet msbuild DependentServices.sfproj /t:包

它抛出错误:

The process cannot access the file 'D:\TFS BuildAgent\BuildAgent4_work\s\CommonLibraries\Model.dll' because it is being used by another process.

您是否尝试过这篇文章 Troubleshoot Build and Release: File- and folder-in-use errors 中的建议?部分:检测正在使用的文件和文件夹防病毒排除