TFS 2010 API Resources

2019-01-22 08:31发布

问题:

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 down WorkItem object.
  • BacklogItemHandler from the Scrum Dashboard project on codeplex also has a lot of good examples of how to use the API.