Export (0) Print
Expand All

Update File Versions in Your Workspace (Team Explorer Everywhere)

Visual Studio 2010

Use the Get command to update the version from the server to the local workspace. The Get command is available through Source Control Explorer, Solution Explorer, or a command prompt. For more information, see Working with Team Foundation Server Workspaces (Team Explorer Everywhere).

A get action will copy files to the local computer if you do not have them already. If the files are already there, a get action will update them if they have changed. You can optionally force an update even if the files already exist. This action is only necessary if your local workspace has somehow become damaged.

Required Permissions

To perform these procedures, you must have the Read permission set to Allow. For more information, see the following topic on the Microsoft Web site: Team Foundation Server Permissions.

To update the version in your workspace from Source Control Explorer, Project Explorer, or Package Explorer

  1. Perform one of the following tasks:

    • Open Source Control Explorer. For more information, see Open Source Control Explorer.

      In Source Control Explorer, right-click the folder or file for which you want to update the version to the local workspace and click either Get Latest Version to retrieve the most recent version of the item, or Get Specific Version.

    • In Project Explorer or Package Explorer, expand the Eclipse project for which you want to update files or folders. Right-click the file or folder that you want to update, point to Team, and click either Get Latest Version to retrieve the most recent version of the item, or Get Specific Version.

  2. If you clicked Get Specific Version, the Get dialog box appears. In the Version area, in the Type list, specify how you want to update the file or folder:

    • Changeset - Get a version based on a changeset.

      You must also specify or browse for the changeset.

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

    • Label - Get a version based on a label.

      You must also specify or browse for the label.

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

    • Workspace Version - Gets a version based on a local Team Foundation Server workspace. You might specify this if you want to get a version that you have in a different workspace, or to get a version that another developer has. By doing this, you could investigate an issue that exists in a specific version of the file, without having to know the specific changeset.

      If you specify Workspace Version, you must also specify the workspace whose version you want to get.

  3. (Optional) Select Force get of file versions already in the workspace to copy the specified version of all files, even those that already exist in the local workspace. You typically only need to use this option if the files in your workspace have somehow become damaged.

  4. (Optional) Select the Overwrite writable files that are not checked out check box to allow the system to overwrite existing files that are not read-only and that are not checked out.

  5. Click Get to complete the update of the specified files and folders.

To update the version in your workspace from a command prompt

  1. Open a command prompt.

  2. Navigate to the folder that is used to store your personal copy of the files on the server, for example, c:\projects.

  3. Type tf get ItemName and then press ENTER.

    NoteNote

    For the full syntax available for the Get command, see the following topic on the Microsoft Web site: Get Command (Team Foundation Version Control).

Community Additions

ADD
Show:
© 2014 Microsoft