How to: Add and Remove a Working Folder in a Workspace

A workspace includes client-side working folders on the local disk mapped to a version-controlled folder on the Team Foundation version control server. A workspace can contain more than one working folder, but can only have a single instance for each server folder. You cannot map a server folder to a local workspace if it already contains a folder, or a subfolder that is mapped to another server folder.

The following procedures demonstrate how to add and remove a working folder in a workspace from Team Foundation version control. To use the command-line utility, see Workspace Command.

Required Permissions

To perform these procedures, you must either own the workspace or have the Administer workspaces permission set to Allow. For more information, see Team Foundation Server Permissions.

To add a working folder to a workspace

  1. On the File menu, click Source Control, and then click Workspaces.

  2. In Manage Workspaces dialog box, under the Name column, highlight the workspace to which you want to add a working folder, and then click Edit.

  3. In the Edit Workspace dialog box, in Working folders, click the next available row under the Server Folder column, and then either type the name of the server folder, or click the ellipses () to open the Browse for folder dialog box and locate the desired folder.

    Note

    You can only have a single entry for each server folder in a workspace. Therefore, you must select a different server folder than those already listed under the Server Folder column. Also, the local folder you select cannot already be associated with another workspace.

  4. Under the Status column in the same row, select Active or Cloaked from the options. To get a local copy of the items in the folder, you must select Active. If you select Cloaked, the items in this version-controlled folder will not be transferred to the local workspace. For more information, see How to: Cloak and Uncloak Folders in a Workspace.

  5. Under the Local Folder column in the same row, either type the local path or click the ellipsis to open the Browse for folder dialog box, and then locate or create a local folder.

  6. Click OK.

To remove a working folder from a workspace

  1. From the File menu, click Source Control, and then click Workspaces.

  2. In the Manage Workspaces dialog box, under the Name column, highlight the workspace from which you want to remove a working folder, and click Edit.

  3. In Edit Workspace dialog box, in Working folders, select the working folder that you want to remove, and then click Remove.

  4. Click OK.

See Also

Tasks

How to: Create a Mapped Workspace

How to: Cloak and Uncloak Folders in a Workspace

How to: Remove a Workspace

Concepts

Working with Version Control Workspaces

Version Control Workspaces and Mapping

Reference

Workspace Command

Other Resources

Getting a Local Copy of Files from the Version Control Server