Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Source Control » Development   (RSS)

How to: Tell if files are identical using TFS APIs?

In a previous post, I answered this question using Diff APIs, which will require the items to be downloaded first. Here's a faster way to do it (thanks to MichalMa ): Use GetItem or GetItems method to get the Item objects for the files. If ContentLength

How to: Diff files using TFS APIs?

You can use the Difference.DiffFiles method which compares two files using the internal diff engine, and return the linked list of DiffSegment s: DiffSegment ds = Difference.DiffFiles(fileA, FileType.Detect(fileA, null), fileB, FileType.Detect(fileB,
 
Page view tracker