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.
devenv /Diff SourceFile, TargetFile, [SourceDisplayName],[TargetDisplayName]
Required. The full path and name of the first file to be compared.
Required. The full path and name of the second file to be compared
Optional. The display name of the first file.
Optional. The display name of the second file.