Can't check in changes to TFS

你说的曾经没有我的故事 提交于 2020-08-03 09:13:07

问题


I am having issues trying to check in changes to TFS hosted on Visual Studio Online. Started just last week. I am running Visual Studio Professional 2017 version 15.5.2.

When I try to check in changes, I get this error:

C:\My\Workspace\Path\Project\File.cs: Download of item $/Workspace/Path/Project/file.cs was not completed. Perform a get operation to correct.

Okay, whatever. Sounds simple enough. So I go to the problem file and do a Get Latest Version. When I do that, I then get this error:

Source Control Explorer  
The network path was not found.

The output in the Output window after attempting the get is this:

Conflict C:\...\...\...\...\...\Program.cs - Unable to perform the get operation because you have a conflicting edit
Automatically resolved conflict: edit: C:\...\...\...\...\...\Program.cs as TakeTheirs
The network path was not found.

I have read a number of posts, and tried a number of things. None have fixed the issue. Things I have tried...

  • Delete the TFS cached under AppData. Did nothing to help.
  • Disconnect VS from the TFS project, then delete the hidden $tf folder under my local workspace and then reconnect VS to the team project and re-get everything. The initial re-gets all worked. But once I made some changes to a project and then tried to check it in, it started with these errors again.

Anyone have any other ideas? The next step I see in my future is having to uninstall and reinstall visual studio, but I'm REALLY trying to avoid that.


回答1:


So, the solution is Deleteing and recreating the workspace.

You will meet similar issues when a workspace is messed up.

Generally, you can try below item to fix such an issue:

  • Disconnect any instance, close VS, then delete the cache folder located at: e.g. %localappdata%\Microsoft\Team Foundation\7.0\Cache, then restart the VS, connect to TFS/VSTS again.

  • Remap the workspace to a new folder

  • Delete the old workspace and create a new one, map it.



来源:https://stackoverflow.com/questions/48012831/cant-check-in-changes-to-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!