Import Visual Studio TFS workspaces

2019-02-06 18:22发布

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

2条回答
一夜七次
2楼-- · 2019-02-06 18:48
啃猪蹄的小仙女
3楼-- · 2019-02-06 18:59

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.

查看更多
登录 后发表回答