当我在 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
在这个一次性命令之后,工作区应该再次工作。如果您的机器上有很多工作区,或者 TFS 服务器上有很多项目集合,那么创建一个小批处理脚本可能会很有用;)。
关于visual-studio-2015 - Visual Studio 2019 找不到绑定(bind)信息,但 VS 2015 很好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55870584/