TFS Annotation Error

▼魔方 西西 提交于 2019-12-13 07:39:26

问题


I've recently had a TFS 2015 to 2017 upgrade, and now I have this error whenever I try to do a Source Control->Annotate from the Visual Studio Solution Explorer:

Annotation Error

m_itempath or m_versionControl not set

If I try to run the annotate from the file editor, I get the different error:

Annotation Error

Unable to determine the workspace for the file C:\...

Using Visual Studio Enterprise 2015. This is a Server workspace, and all other operations seem to work as normal.


回答1:


Most of the solutions in

  • Is there workaround for when TFPT is "unable to determine the workspace" and refreshing the cache does not work?
  • TFS Error: Unable to determine the workspace for this solution

failed to work for me.

This did work:

  1. Go to Source Control Explorer
  2. Right-click on the mapped folder
  3. Select 'Advanced->Remove Mapping' and follow prompts. Ignore conflict screens.
  4. Select 'Advanced->Map to Local Folder' and map back to the existing folder.
  5. Resolve any outstanding conflicts.

After this, the annotations worked again.



来源:https://stackoverflow.com/questions/45688981/tfs-annotation-error

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