Skip to content
A simple MSBuild task to do differential file analysis for complex deployments.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DiffCopy
Harness
.gitattributes
.gitignore
MSBuild-DiffCopy.sln
ParameterizedStatements.xml
README.md

README.md

MSBuild DiffCopy

A custom MSBuild task that will compare two directories and return a list of new, modified and orphaned files. This functionality is particularily useful for doing differential build/deployment on very large projects.

For example, rather than deploy a large number of files, or numerous large files that havent changed, simply deploy only the files that are new or have been modified.

Features

  1. Compare files using an optimized (fast) byte comparison.
  2. Compare operation returns a list of new and modified files.
  3. Orphaned file detection. Find files that exist in the destination but not the source.

Example

<UsingTask AssemblyFile="$(ProjectDir)\DiffCopy\DiffCopy.dll" TaskName="DiffCopy.DiffCopyBuildTask" />
<Target Name="Diff">
  <DiffCopyBuildTask
      SourceDirectory="$(Source)"
	  DestinationDirectory="$(Destination)">
	<Output TaskParameter="NewFiles" ItemName="NewFiles" />
	<Output TaskParameter="ModifiedFiles" ItemName="ModifiedFiles" />
	<Output TaskParameter="NotInSourceFiles" ItemName="NotInSourceFiles" />
  </DiffCopyBuildTask>
</Target>
You can’t perform that action at this time.