tfsazure-devopstfsbuildazure-service-fabricservice-fabric-on-premises

service fabric package command fails when called from tfs


While building service fabric the package command runs file in local machine, but fails when this is added as a build steps in TFS/VSTS. We are using onPrem build agent.

dotnet msbuild DependentServices.sfproj /t:Package

It throws error:

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


Solution

  • Did you try suggestions from this article Troubleshoot Build and Release: File- and folder-in-use errors? Sections: Detect files and folders in use and Anti-virus exclusion