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 Ee341464.xtlink_newWindow(en-us,Expression.40).png 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 Ee341464.xtlink_newWindow(en-us,Expression.40).png on MSDN.


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.40).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 Ee341464.xtlink_newWindow(en-us,Expression.40).png.

  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

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.