TFS Annotation Error

2019-09-17 01:45发布

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条回答
Melony?
2楼-- · 2019-09-17 02:24

Most of the solutions in

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.

查看更多
登录 后发表回答