Поделиться через


Add and Remove a Working Folder in a Workspace

A workspace includes client-side working folders on the local disk that are mapped to a version-controlled folder on the Team Foundation version control server. A workspace can contain more than one working folder, but can have only 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.

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. 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 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. Then either type the name of the server folder or click the ellipses () to open the Browse for folder dialog box, and then locate the desired folder.

    Note

    You can have only a single entry for each server folder in a workspace. Therefore, you must select a server folder that differs from those that are 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 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 then click Edit.

  3. In the 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

Cloak and Uncloak Folders in a Workspace

Remove a Workspace

Concepts

Create a Workspace to Work with your Team Project

Create and Work With Workspaces

Other Resources

Getting a Local Copy of Files from the Version Control Server

Create a Workspace and Get Files for the First Time