I'm using TFS and C# and I want to programmatically get a list of files that have changed between 2 different folders.
I want to be able to enter the path & label, just like the Compare option in the Source Control Explorer in Visaul Studio.
thanks,
John.
views:
123answers:
2
A:
The API you're looking for is in Microsoft.TeamFoundation.VersionControl.Controls.FolderDiff. Unfortunately it's marked internal-only. You'll have to bust open Reflector and access it the "fun" way.
Alternatively, you could parse the output of tf.exe folderdiff $/folder1 $/folder2.
Richard Berg
2009-12-11 05:12:36
A:
thanks for the answer, however the API you suggested is internal.
I was able to find an great example of how to do this called Diffing two trees in TFS version control
Rossini
2009-12-11 16:02:57