bomaboom
bomaboom

Reputation: 300

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.

Upvotes: 6

Views: 107

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16058

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

Upvotes: 2

Related Questions