Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Visual Studio TFS workspaces

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

like image 819
Murtaza Mandvi Avatar asked Jan 15 '10 16:01

Murtaza Mandvi


People also ask

How do I add a workspace in TFS?

To create a workspace to manage your source-controlled files 1. From the File menu, select Source Control, and then click Workspaces. 2. In the Manage Workspaces dialog box, click Add.

Where are TFS workspaces stored?

TFS workspaces are unique to your user name and the remote computer name and workspace information is stored both on your local computer and on the server. Genearlly if the machine name not changed, the previous workspace will be still available when you connect to the team project.

How do I map a workspace in TFS?

From Visual Studio, go to the Team Explorer Connect page (Keyboard: Ctrl + 0, C) and then connect to the project. (If the project you want to open is not listed, choose Select Projects and then connect to the project.) Map the project to a folder on your dev machine. Map the workspace and get your code.


1 Answers

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.

like image 102
Richard Berg Avatar answered Oct 07 '22 11:10

Richard Berg