Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Build keep throwing 'Unable to perform the get operation because the file already exists locally' error

I am currently working on an ASP.NET based web application which is version controlled via TFS. A TFS Build server is configured so it is running the build process on every checkin. My problem is that whenever I modify the Web.Config file and check in the modifications, the build process keeps throwing an error when getting the source which says 'Unable to perform the get operation because the file already exists locally'. I tried to remove the Web.Config from TFS and checked in the modifications, but the error was still there, saying 'Unable to perform the delete operation because the file already exists locally'. But when I manually delete the file from the build server's filesystem, the problem is gone. What do you think the problem is? I have not found anything relevant to this on google, so I would be really happy if you could help me. Thanks a lot!

like image 291
garam93 Avatar asked Mar 23 '16 17:03

garam93


2 Answers

In TFS 2015, VSTS, I solved the issue by selecting true from the dropdown shown below:

enter image description here

Don't forget to set it back to false after the build succeeds because if you leave it on, it will always do a clean and thus the build will take longer.

like image 192
CodingYoshi Avatar answered Sep 21 '22 13:09

CodingYoshi


In your build definition, do you have Clean Workspace option set to All?

enter image description here

If that doesn't help, can you set the Logging Verbosity to Diagnostic and see if there is anymore detail about the issue.

like image 20
M. Tovbin Avatar answered Sep 22 '22 13:09

M. Tovbin