Get a specific version of a file
You can use Blend for Visual Studio 2012 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 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.
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.
To get a specific version of a file from source control
In the Projects panel, right-click the item you want, and then click Get Specific Version.
The Get dialog box appears.
Under Files, make sure that the files that you want to get are selected.
Under Version, click the drop-down list next to Type, select Changeset, and then click the browse button .
The Find Changesets dialog box appears.
Under Find options, make sure that the Containing file field lists the file that you are interested in.
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.
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.
Select the overwrite options that you want. For more information, see How to: Retrieve Old Versions of Files from Changesets.
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.
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.