在 Team Foundation Server 中脱机工作

发布于 2024-07-09 23:07:30 字数 134 浏览 7 评论 0原文

有没有一种方法可以在 TFS 中设置“脱机工作”,而不必尝试打开解决方案,等待其超时,然后让 Visual Studio 发现它已失败?

我不能直接在方框里打勾来告诉自己,这似乎有点荒谬,因为我可能是最有资格知道当我不在办公室时的人!

Is there a way to set "work offline" in TFS without having to try opening a solution, waiting for it to time out, and then having Visual Studio work out that it has failed?

It seems a touch ridiculous that I can't just tick a box to tell it myself, seeing as I'm probably the one most qualified to know when I'm not in the office!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

讽刺将军 2024-07-16 23:07:30

这是使用 TFS 的 VS 2008 的解决方案

  1. 导航到 Visual Studio 菜单 ---- 文件 > 源代码控制> 更改源代码控制> 单击“解决方案/项目”>“解决方案/项目” 选中/取消选中项目复选框 > 点击顶部的“解除绑定”按钮。

这会使您的完整解决方案或解决方案中选定的项目从 TFS 脱机。

  1. 当您想上网时,请按照相同的步骤操作,然后单击“绑定”按钮

Here's the solution for VS 2008 with TFS

  1. Navigate to Visual Studio Menu ---- File > Source Control > Change Source Control > Click on Solution/Project > Check/uncheck the project checkboxes > Click 'Unbind' button at the top.

This makes your complete solution or the selected project(s) in the solution Offline from the TFS.

  1. When you want to Go Online, follow the same steps and click the button 'Bind'
趁微风不噪 2024-07-16 23:07:30

Ben Ryan 在他的博客上提供了您需要的注册表项:

大多数这些控件也内置于最新的电动工具

C:\Users\Richard> tfpt tweakui /?
tfpt tweakui - Enhance how client connects to Team Foundation Server

Allows configuration of how and when the client connects to a 
Team Foundation Server.  This includes client certificates, auto
reconnect, offline, compression, maximum connections, timeouts, 
and bypassing the proxy.

Ben Ryan has the regkeys you seek on his blog:

Most of these controls are also built into the latest Power Tools:

C:\Users\Richard> tfpt tweakui /?
tfpt tweakui - Enhance how client connects to Team Foundation Server

Allows configuration of how and when the client connects to a 
Team Foundation Server.  This includes client certificates, auto
reconnect, offline, compression, maximum connections, timeouts, 
and bypassing the proxy.
听风吹 2024-07-16 23:07:30

当我必须脱机工作时,我只需拔掉以太网电缆并启动 TFS 2008。它会以脱机模式启动我。 然后重新插入,在解决方案资源管理器中右键单击“在线工作”,TFS 将要求您签入离线更改。

when I have to work offline I just unplug my ethernet cable and start TFS 2008. It starts me in offline mode. Then plug back in, right-click 'work online' in solution explorer, and TFS will ask you to check in your offline changes.

隔纱相望 2024-07-16 23:07:30

添加主机条目
127.0.0.1 tfs.foo.com

add a host entry
127.0.0.1 tfs.foo.com

忆梦 2024-07-16 23:07:30

Team Foundation Server 2008 支持脱机工作。

此视频演示了如何使用此功能。

Team Foundation Server 2008 does support working offline.

This video demonstrates how to use this feature.

定格我的天空 2024-07-16 23:07:30

如果 TFS 关闭,您可能无法进入离线模式。 如果您关闭并重新打开解决方案,将会出现一个漂亮的小对话框,询问您是否要脱机。

或者,如果您不想关闭/重新打开解决方案,可以安装 TFS Go-Offline 插件,然后单击:

TEAM -> Go Offline

If TFS is down, you might have trouble going into offline mode. If you close and reopen your solution, a nice little dialog will appear asking you if you want to Go Offline.

Alternatively if you don't want to close/reopen the solution, you can install the TFS Go-Offline plugin, then click:

TEAM -> Go Offline
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文