Get Changeset and all it's changes on TFS using c#

前端 未结 1 371
走了就别回头了
走了就别回头了 2021-01-02 05:58

I am trying to get a specific changeset by it\'s changesetid. It is working. The problem is I can\'t get the files affected by that changeset.

Changeset chan         


        
相关标签:
1条回答
  • 2021-01-02 06:47

    You are already iterating over the Changes in your code. The affected File is in the Item property of the Change type.

    in your case: w.Item.ServerItem --> This is the Serverpath of the File like '$/A/B/C.txt'

    You can download it by using w.Item.DownloadFile(@"C:\local.txt")

    0 讨论(0)
提交回复
热议问题