https://github.com/NuGet/Home/issues/1164
Reopen this bug, will look into this in 3.5.
repro step:
Got TFS error: "[file]not be found in your workspace, or you do not have permission to access it"
the bug is during uninstalling packages, nuget will delete package files from TFS, but if user set disableSourceControllntegration to true, package files are not added to TFS workplace during installing, so TFS can't find those files during uninstalling,
The fix is to check disableSourceControlIntegration before deleting package files from TFS.
I fixed the error.
I was simple.
just Check in the latest changes in project , OR get the latest changes and synchronize both tfs and local code.
then you will see every thing is OK.
I encountered this problem today. I have the latest verion of VS2017 with latest updates. This was a difficult one to track down, I had my suspicions about TFS and found this thread which confirmed them. Unbinding from source control worked for me. The fix from Navidsoft above did not work for me. I tried deleting my local copy and refreshing from source control and still the same problem occured. Only unbinding from source control worked for me.