Share via


Get a specific version of a file

You can use Microsoft Expression Blend to get earlier versions of a file. This is useful if you want to view an earlier version of a .xaml file on the artboard in Expression Blend.

Alternatively, you can view or compare versions of a file in a text viewer. For more information, see View or compare the changes made to files.

If you want to revert the checked-in file on the Team Foundation server to an older version, use the procedure at How to: Roll Back a Changeset on MSDN.

To get a specific version of a file from source control

You can use the following procedure to get a version of a file based on its changeset number (the number that identifies the set of changes that was checked in). For alternative procedures, see How to: Get the Source for Your Team Project on MSDN.

Note

This procedure gets every version-controlled item in the changeset so that you end up with a complete set of files that will build without errors. If you were to retrieve only one file from a changeset, you might be missing changes in other files that allow the solution to build.

  1. In the Projects panel, right-click the item you want, and then click Get Specific Version.

    The Get dialog box appears.

  2. Under Files, make sure that the files that you want to get are selected.

  3. Under Version, click the drop-down list next to Type, select Changeset, and then click the browse button Ee341464.88d78bac-65bc-4e53-8df4-36df91d73725(en-us,Expression.30).png.

    The Find Changesets dialog box appears.

  4. Under Find options, make sure that the Containing file field lists the file that you are interested in.

  5. Make sure All changes is selected, and then click the Find button.

    All the changes to the file are listed under Results. You can refine the list by typing a name under By user, or by selecting a range of dates under Created date, and then clicking Find again.

  6. Select one of the results, and then click OK.

    The Find Changesets dialog box closes, and the Get dialog box lists the Changeset that you selected.

  7. Select the overwrite options that you want. For more information, see How to: Retrieve Old Versions of Files from Changesets.

  8. Click Get.

    Your local copy of the file is overwritten with the version that you selected, and you can open it from the Projects panel.

  9. When you are done viewing the file, if you want to overwrite your local copy with the latest version of the file, make sure that you get the latest version.

See also

Tasks

Get the latest copies of project files

Check files in and out

View or compare the changes made to files