导入 Visual Studio TFS 工作区 [英] Import Visual Studio TFS workspaces

查看:24
本文介绍了导入 Visual Studio TFS 工作区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法导入 Visual Studio TFS 工作区,我有 30 多个工作区,我需要将它们导入新机器上的 TFS.谢谢

Is there a way to import Visual Studio TFS workspace, I have over 30 workspace and I need to import them to a TFS on new machine. Thanks

推荐答案

如果您想克隆工作区的结构,但保留旧的工作区,请运行

If you want to clone the structure of your workspaces but leave the old ones alone, run

tf workspace /server:yourserver /new NewName /template:OldName;OldOwner

http://msdn.microsoft.com/en-us/library/tzy14b58.aspx

如果您想永久迁移您的工作区从一台机器到另一台机器,请运行...

If you want to permanently migrate your workspaces from one machine to another, run...

tf workspaces /server:yourserver /updatecomputername:OldComputerName

http://msdn.microsoft.com/en-us/library/54dkh0y3.aspx

...然后将所有文件从旧盒子移动到新盒子.如果您无法使用相同的路径,则必须更新工作区定义.

...then move all your files from the old box to the new one. If you're unable to use the same paths, you'll have to update the workspace definitions.

这篇关于导入 Visual Studio TFS 工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆