将 VS2015 更新到 Update 1 后,变更集评论策略出现内部错误

Internal error in Changeset Comments Policy after updating VS2015 to Update 1

大约一个小时前一切都很好,当我尝试签入某些东西时,政策友好提醒我 "provide a comment for the check-in"。然后我安装了 VS2015 更新 1,就像我的一些同事所做的那样,之后,我在尝试检查某些内容时收到以下错误消息:

Internal error in Changeset Comments Policy. Error loading the Changeset Comments Policy policy (The policy assembly 'Microsoft.TeamFoundation.PowerTools.CheckinPolicies.ChangesetComments, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not registered.). Installation instructions: To install this policy, follow the instructions in CheckForComments.cs.

我的同事们当然不会。据我所知,自 VS2012 以来,不再需要安装任何版本的 Power Tools,那么为什么会发生这种情况?此外,我还安装了 VS2013,但我没有收到该错误消息,该版本运行良好。有人知道我需要看哪里吗?

好的,我知道了。不知何故,安装搞砸了。在我的机器上文件夹

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation

非常空,我的同事在那里有一个路口,通往这个文件夹

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\XXXXXXX

其中 XXXXXX 显然因机器而异。要找到正确的,请转到扩展文件夹(向上)并查找包含 "Microsoft.TeamFoundation.Build.Controls.dll" 和其他一些 Teamfoundation dll 的文件夹,然后打开提升的命令提示符并创建缺少的连接,如下所示:

mklink /j "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\XXXXXX"

(注意,您需要将 XXXXX 替换为您计算机上的文件夹名称)

- 注意:请不要忘记在进行此更改后重新启动 Visual Studio,以便开始无缝检查。

建议的答案在 VS 2015 上对我不起作用。我已经有了连接,但我看到了错误。

https://devblogs.microsoft.com/buckh/internal-error-loading-the-changeset-comments-checkin-policy/ 向我指出了这一点:

Cause

With VS 2005 through 2010, to get the Changeset Comments policy, you had to download and install the Team Foundation Power Tools.

我必须下载并安装 Microsoft Visual Studio Team Foundation Server 2015 Power Tools

它在 VS 中可用:
Visual Studio 2015 > 工具 > 扩展和更新:

之后需要重新启动 VS。