How can I programmatically check-out an item for edit in TFS?

前端 未结 6 2073
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 19:43

I\'m working on a utility processing files being under source control using TFS 2010.

If an item is not yet checked-out for edit, I\'m getting an exception, what is

6条回答
  •  鱼传尺愫
    2020-12-23 20:47

    You can use Team Foundation Version Control client API. The method is PendEdit()

    workspace.PendEdit(fileName);
    

    Checkout detailed example on MSDN http://blogs.msdn.com/b/buckh/archive/2006/03/15/552288.aspx

提交回复
热议问题