使用 TFS 客户端 API 上传文件
我想将文件从 asp.net 网页上传到 TFS 服务器。 使用 TFS API,我从我的网页创建了错误 - 但该错误还需要文件附件才能上传,请告诉我。
I want to upload a file from asp.net webpage to TFS server.
Using TFS API I have created bug from my web page - but the bug also needs a file attachement to upload please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够简单地创建一个 Attachment 对象并将其添加到 WorkItem 上的 Attachments 集合中,然后再保存它:
You should be able to simply create an Attachment object and add it to the Attachments collection on the WorkItem before you save it: