我安装了 Visual Studio 2015 Enterprise RTM 并且只看到来自 Code Lens 的“引用”。我们正在使用 TFS 进行源代码控制。我希望看到来自 TFS 的相关提交。 Based on this article ,我在选项中启用了所有功能:
这是我在 VS 中看到的:
我的 VS 设置有什么问题吗?
最佳答案
作为 CodeLens 一部分的 TFVC 镜头仅在连接到运行生成历史数据的后台作业的 Team Foundation Server 版本时才起作用。这意味着您至少需要运行 TFS 2013 或 2015 才能运行此功能。某些功能需要 specific version of Visual Studio .
也有可能是您的 server admin has disabled indexing on the server , 可以使用 tfsconfig codeindex
做到这一点应用层上的命令。
关于tfs - CodeLens 只显示引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31570140/