在 Team Foundation Server 中脱机工作
有没有一种方法可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
此扩展应该可以解决您的问题(对于 VS 2010):
http://visualstudiogallery。 msdn.microsoft.com/425f09d8-d070-4ab1-84c1-68fa326190f4?SRC=Home
This extension should solve your problem (for VS 2010):
http://visualstudiogallery.msdn.microsoft.com/425f09d8-d070-4ab1-84c1-68fa326190f4?SRC=Home
这是使用 TFS 的 VS 2008 的解决方案
这会使您的完整解决方案或解决方案中选定的项目从 TFS 脱机。
Here's the solution for VS 2008 with TFS
This makes your complete solution or the selected project(s) in the solution Offline from the TFS.
Ben Ryan 在他的博客上提供了您需要的注册表项:
大多数这些控件也内置于最新的电动工具:
Ben Ryan has the regkeys you seek on his blog:
Most of these controls are also built into the latest Power Tools:
当我必须脱机工作时,我只需拔掉以太网电缆并启动 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.
添加主机条目
127.0.0.1 tfs.foo.com
add a host entry
127.0.0.1 tfs.foo.com
Team Foundation Server 2008 支持脱机工作。
此视频演示了如何使用此功能。
Team Foundation Server 2008 does support working offline.
This video demonstrates how to use this feature.
如果 TFS 关闭,您可能无法进入离线模式。 如果您关闭并重新打开解决方案,将会出现一个漂亮的小对话框,询问您是否要脱机。
或者,如果您不想关闭/重新打开解决方案,可以安装 TFS 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: