在 tfs 中看不到上线选项
我在离线模式下打开了一个解决方案。但现在我尝试上网并连接到 tfs,但我似乎看不到“文件”-> 下的“上网”按钮。源代码控制。
我使用 Team-> 连接到 TFS连接到 Team Foundation Server 选项,但我仍然没有在“文件”->“文件”中看到“上线”按钮源代码控制。
TFS还有其他上网方式吗?
使用的版本:Visual Studio 2010 Ultimate,连接 Team Foundation Server 2010。
I opened a solution in offline mode. But now I am trying to go online and connect to tfs but I cannot seem to see the "Go Online" Button under File-> Source Control.
I connected to TFS using Team-> Connect to Team Foundation Server option but I still don't see "Go Online" button in File-> Source Control.
Is there any other way to go online in TFS?
Version used : Visual Studio 2010 Ultimate, connecting Team Foundation Server 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我发现当“源代码管理资源管理器”窗口处于活动状态时,不会出现“文件 > 源代码管理 > 联机”菜单项。
因此,您将必须打开不同的窗口和/或文件。
就我而言,当我在打开的解决方案的项目中打开 .cs 文件时,“上线”菜单项再次可用。
I found out that the "File > Source Control > Go Online" menu item doesn't appear when the "Source Control Explorer" window is active.
So you will have to open a different window and\or file.
In my case, when I opened a .cs file within a project of the open solution, the "Go Online" menu item was available once again.
尝试“文件”>源代码控制>更改源代码管理,然后绑定您的解决方案/项目。
Try File > Source Control > Change Source Control, and then bind your solutions/projects.
当我与 tfs 断开连接时,当我处理解决方案时,我遇到了同样的问题。
我卸载并加载了我离线工作的项目,然后突然显示了上线选项。
我认为这样做会检查项目,以便删除未知的绑定。
I faced the same problem when i worked on my solution when i was disconnected from tfs.
I unloaded and loaded the project i worked offline and suddenly go online option showed.
I think doing that checks out the project so that unknown bindings are removed.
您可能必须删除无法正确绑定的现有项目的绑定。
然后关闭绑定对话框。
现在,您可以从解决方案资源管理器添加每个断开连接的项目。
这介于错误和可悲之间,但如果您单击足够多看似不相关的菜单、上下文菜单和对话框,您可能会猜测如何修复 TFS 连接,如下所示
You may have to delete the bindings of existing projects that failed to bind correctly.
Then close the binding dialog.
Now you can add each of the disconnected projects from your solution explorer.
This ranges somewhere between buggy and pathetic, but if you click around on sufficiently many seemingly unrelated menus, context menus, and dialogs, you may guess how to repair the TFS connection like this
这并不理想,但另一个选择是关闭 Visual Studio 并再次打开它。
就我而言,每当我断开连接时(我们在线使用TFS),然后在连接断开后,我的VS认为它仍然处于离线状态,否则我无法说服它,所以当我重新启动VS时,它会强制它检查连接,然后我的解决方案会自动返回“在线”。
This is not ideal, but another option is to close Visual Studio and open it again.
In my case whenever I get disconnected (we use TFS online) then after a drop in connectivity my VS thinks it is still offline, I cant convince it otherwise so when I restart VS it then forces it to check connectivity and then my solution is automatically back "online".