Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 422
bomaboom Avatar asked Feb 09 '19 17:02

bomaboom


1 Answers

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

like image 97
Shamrai Aleksander Avatar answered Oct 16 '22 12:10

Shamrai Aleksander