导入Visual Studio TFS工作区

导入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.