This documentation is archived and is not being maintained.

How to: Get the Source for your Team Project

In Source Control Explorer, you can get source controlled items from the server and populate them into your local workspace for your team project. However, you must have a local workspace before you start this process. For more information, see How to: Create a Workspace. The following procedure demonstrates populating a workspace with items from the server.

Required Permissions

To perform these procedures, you must have the Create a workspace and the Read permissions set to Allow. For more information, see Team Foundation Server Permissions.

To populate a workspace

  1. Create a new workspace. For more information, see How to: Create a Workspace.

  2. On the View menu, click Other Windows, and then click Source Control Explorer.

  3. In Source Control Explorer, click Workspace on the toolbar, and select the new workspace from the list.

  4. With the new workspace selected, items that appear dimmed indicate that they have not been copied to your local workspace. Go to a folder or file that you want to add to the new workspace, right-click, and click either Get Latest Version to copy the latest version of the items, or Get Specific Version.

    If you click Get Specific Version, the Get dialog box appears.

  5. In the Get dialog box, make sure that the file or folder you want to get is selected and then select what type of version you want to get from the Type drop-down list:

    • Changeset   Get a version based on a changeset. For more information, see How to: Find a Changeset.

    • Date   Get a version based on a date. If selected, click a date in the Date list.

    • Label   Get a version based on a label. For more information, see How to: Find Labels.

    • Latest Version   If selected, updates with the latest version on the Team Foundation source control server.

    • Workspace Version   Gets a version based on the workspace.

  6. (Optional) Click the Overwrite writable files that are not checked out option.

    If selected, files from the server will overwrite all files that do not have the read-only attribute associated with them and are not checked out. Only files on the server, which are different, will overwrite the files in the local workspace. By default, this option is not selected.

  7. (Optional) Click the Force get of file versions already in workspace option.

    By default, this option is not selected.

    NoteNote

    Team Foundation ignores any change that is made outside the Visual Studio integrated development environment. If you clicked the Force get of file versions already in workspace option, you get those changes as well.

  8. Click Get.

    Source Control Explorer is displayed. If you clicked Latest Version in step 5, the Latest column is updated with the status of Yes.

See Also

Show: