Compare Two Files
Compare lets you see the differences between two server files, two local files, or a server file and a local file. You can also use Compare to compare two folders.
For more information, see Compare Two Folders.
Required Permissions
To perform these procedures, you must have the Read permission set to Allow. For more information, see Team Foundation Server Permissions.
Poznámka
To compare two local files, you do not need Team Foundation Server permissions.
To compare two files
On the View menu, click Other Windows, and then click Source Control Explorer.
In Source Control Explorer, right-click the version of the file that you want to compare, and then click Compare.
Poznámka
As an option, you can right-click a file in Solution Explorer and then click Compare.
The Compare dialog box appears and the local path of the file that you selected is in the Source Path box.
Enter the Target Path or click Browse and locate the target folder.
Under Target Version, select the Type you want to use for comparison: Changeset, Date, Label, Latest Version, or Workspace Version.
Click OK.
If the files have no differences, the Microsoft Visual Studio dialog box appears, informing you that the files are identical. Click OK.
Otherwise, a difference window displays the files side by side.