开发者

How to associate work item with check in when using tf.exe

We have a rule in TFS that requires all checkins to be associated with a work item. We have an automated daily build process that uses tf.exe to c开发者_运维百科heck in the files. However, I did not find any way to associate files with a work item. I heard of tfpt, and have it installed, however, I did not have any success using it to associate files with a changeset either. Is there another way to do this?

Thanks!


I'm pretty sure tf.exe / tfpt.exe cannot do this except through their UI. If you need to use the -noprompt parameter for automation then you're likely out of luck.

Luckily, it's not hard to use the API directly. MSDN link. Basically just build up an array of WorkItemCheckinInfo[] and pass it along with your request.


Team Foundation Power Tools has a command for dealing with work items.

tfpt.exe help workitem
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜