I'm using TFS and C# and I want to programma开发者_JAVA技巧tically 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.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.
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
精彩评论