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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With