Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » VSTF » 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: Listen to TFS event notifications?

If you need to listen to TFS event notifications, you can subscribe to checkin event and make the server deliver the event info to a SOAP address , a web/ WCF service , or even a TCP listener that waits for that data and doesn't have to have access to
Posted by mohamedg | 0 Comments
Filed under: , ,

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