Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将文件从 asp.net 网页上传到 TFS 服务器。使用 TFS API 我从我的网页创建了错误 - 但该错误还需要文件附件才能上传,请告诉我。
您应该能够简单地创建一个 Attachment 对象并将其添加到 WorkItem 上的 Attachments 集合中,然后再保存它:
Dim attachment As New Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("c:\somefile.txt", "My Comment") workItem.Attachments.Add(attachment) workItem.Save()