Does anyone have any good resources for working with the TFS 2010 API? I specifically looking at how to create, read, update and delete work items.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Please see the Team Foundation Server 2010 SDK on MSDN Code Gallery. More content will be coming on-line for the RTM release, but you should find enough there to get you started. Contact me know if you have any questions.
回答2:
- Shai Ratan's blog has a huge wealth of examples. They're 2008 but 99% still relevant.
- www.tfsexamples.com has 2008 examples, but still relevant
- WorkItemManager class from a TFS OS project I'm currently working on called Spruce, which is ASP.NET MVC 3 front end for TFS workitems. The class illustrates a large portion of what you need, although no deleting examples.
WorkItemSummary
in that class is simply a scaled downWorkItem
object. - BacklogItemHandler from the Scrum Dashboard project on codeplex also has a lot of good examples of how to use the API.