How can I add an attachment via the SDK to a work item without using a physical file?

后端 未结 1 525
时光取名叫无心
时光取名叫无心 2021-01-14 15:02

I\'m trying to create a new work item for TFS 2010 via the client SDK.

In the SDK you can do something like this:

WorkItem item = ...;
item.Attachmen         


        
1条回答
  •  北恋
    北恋 (楼主)
    2021-01-14 15:41

    This is not possible.

    There is a nice implementation of adding a screenshot to the work item using a temporary file: http://witcustomcontrols.codeplex.com/SourceControl/changeset/view/74794#336038

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