/Diff

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

Compares two files. The differences are displayed in a special Visual Studio window.

Syntax

devenv /Diff SourceFile, TargetFile, [SourceDisplayName],[TargetDisplayName]

Arguments

SourceFile Required. The full path and name of the first file to be compared.

TargetFile Required. The full path and name of the second file to be compared

SourceDisplayName Optional. The display name of the first file.

TargetDisplayName Optional. The display name of the second file.