开发者

Compare Folders in TFS

开发者 https://www.devze.com 2022-12-13 19:45 出处:网络
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'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

0

精彩评论

暂无评论...
验证码 换一张
取 消