visual-studio-2015 - Visual Studio 2019 找不到绑定(bind)信息,但 VS 2015 很好

标签 visual-studio-2015 tfvc visual-studio-2019 source-control-bindings

当我在 VS 2019(或 2017)中打开一个项目时,我收到以下消息:

The solution you are opening is bound to source control on the following...Would you like to contact this server to try to enable source control integration.



我单击是并收到:

The solution appears to be under source control, but its binding information cannot be found...



VS 2015 打开项目就好了。什么是交易?

最佳答案

为确保填充 Team Explorer 2019 的连接和工作区缓存,它需要至少连接到服务器一次,然后才能知道如何将解决方案绑定(bind)到源代码管理。

您可以通过 Team Explorer 中的 Connect to... 选项执行此操作。

如果如您所述,该对话框给您带来了柠檬,另一种方法是通过命令行连接工作区。打开Developer Command for VS 201x (与您尝试连接的 Visual Studio 版本匹配)并从那里发出以下命令以强制连接:

tf vc status $/ /collection:https://yourtfsserver

enter image description here

在这个一次性命令之后,工作区应该再次工作。如果您的机器上有很多工作区,或者 TFS 服务器上有很多项目集合,那么创建一个小批处理脚本可能会很有用;)。

关于visual-studio-2015 - Visual Studio 2019 找不到绑定(bind)信息,但 VS 2015 很好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55870584/

相关文章:

visual-studio-2015 - 如何从 VS 2015 ASP.NET 5 MVC6 中的 Controller 生成 View

tfs - TFVC(Team Foundation 版本控制)到底是什么

git - checkin TFVC Team Projects 会触发 Git Team Project 中的构建

git - 将源代码从 git 迁移到 TFVC

visual-studio - 在 Visual Studio 编辑器中禁用当前行的突出显示

c# - .NET 5 : Import was not found or had errors

visual-studio-2019 - devenv.exe 退出而不是构建(Visual Studio Community 2019)

visual-studio - 缓慢的应用程序构建 - Xamarin for Visual Studio

c++ - 如何用c++建立一个简单的ssh连接

c# - 视频不使用统一在 Visual Studio 的本地机器上播放