26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. In Source Control Explorer, click the Workspace drop-down list and then click<br />

Workspaces.<br />

2. In the Manage Workspaces dialog box, click Add.<br />

3. In the Add Workspace dialog box, enter a new workspace name such as<br />

MyIsolatedWork and provide a comment to serve as a future reminder about the<br />

purpose of the workspace.<br />

4. In the Working folders list, set the workplace status to Active, identify the source<br />

control folder to be included in the workspace (this can be the team project root folder<br />

or any subfolder), and specify a local folder path on your own computer to contain the<br />

files from the workspace.<br />

5. Click OK and then click Close to create the isolated workspace.<br />

To retrieve the latest set of source to begin work in your isolated workspace<br />

1. In Source Control Explorer, make sure that your isolated workspace name is selected<br />

in the Workspace drop-down list.<br />

2. Select your team project root folder (or a subfolder if you only need part of the source<br />

tree), right-click, and then click Get Latest Version.<br />

This copies the folder structure and latest file set from the source control server to the<br />

local directory on your computer that you mapped to the new workspace.<br />

Additional Resources<br />

• For more information about creating a workspace, see “How to: Create a Workspace”<br />

at http://msdn2.microsoft.com/en-us/library/ms181384(VS.80).aspx<br />

• For more information about editing a workspace, see “How to: Edit a Workspace” at<br />

http://msdn2.microsoft.com/en-us/library/ms245466(VS.80).aspx<br />

Delete and Rename Files by Using Source Control, Not Windows Explorer<br />

If you need to delete or rename files that have been added to source control, you should<br />

delete or rename them by using Source Control Explorer or by using Tf.exe from the<br />

command line. Do not delete or rename files by using Windows Explorer because doing<br />

so forces your local workspace files to become out of synchronization <strong>with</strong> the source<br />

control files maintained on the server.<br />

To delete a file or folder by using Source Control Explorer<br />

1. In Source Control Explorer, select the file or folder.<br />

2. Right-click the selected file or folder and then click Delete.<br />

An icon that indicates the item is deleted appears to the left and the status “delete”<br />

appears under the Pending Change column. The item is deleted the next time you<br />

check the file in.<br />

Note: You cannot delete an item for which another pending change exists. For example, a<br />

checked out file cannot be deleted.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!