以编程方式在 TFS 中添加新迭代
我可以通过右键单击项目并转至“团队项目设置”>“手动将新迭代添加到 TFS 中的团队项目”。区域和迭代>迭代选项卡。
是否有一个示例说明如何使用他们的 API 以编程方式执行此操作?
谢谢!
I can manually add a new iteration to a team project in TFS by right clicking on the project and going to Team Project Settings > Areas and Iterations > Iterations tab.
Is there an example out there of how to do this programmatically using their API?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过基于 taylonr 链接的一些实验后,我想出了以下作为添加迭代的最小解决方案,以防其他人遇到这种情况:
After some experimentation based on taylonr's link, here's what I came up with as a minimal solution for adding an iteration, in case any one else runs into this:
本教程可以解决您的问题吗?
http://blogs.microsoft.co.il/blogs/shair/archive/2009/01/30/tfs-api-part-10-add-area-iteration-programmatically.aspx
Google -Fu "tfs api add iteration"
从他的代码(并使用 TFS)来看,迭代似乎被视为层次结构。这就是为什么你会看到像“Release1\Sprint2”这样的东西......你可以将它们嵌套得很深......在深处它们可能只是一条路径,这就是为什么他使用添加路径等
Does this tutorial solve your problem?
http://blogs.microsoft.co.il/blogs/shair/archive/2009/01/30/tfs-api-part-10-add-area-iteration-programmatically.aspx
Google-Fu "tfs api add iteration"
From glancing at his code, (and using TFS) it looks like iterations are getting treated as hierarchies. That's why you see things like "Release1\Sprint2" etc... you can have them nested deep... deep down they're probably just a path and that's why he's using the add path etc