如何从代码中显示关联工作项?
我们使用内部设计工具开发一些产品,该工具将信息存储在 XML 文件中。为了提供与 TFS 的正确集成,我们还编写了一个提供程序,该提供程序可以在 TFS 中跟踪用户在使用设计器时的签入和签出操作,而无需与 Team Explorer 进行交互。
现在的要求是在签入文件时添加相关的工作项,我已经用谷歌搜索并浏览了一些 SDK 示例,但我无法理解是否有一种方法可以显示相同的 Windows 窗体,允许用户将代码关联到从代码中获取工作项,还是必须从代码中实现完整的窗口表单(检索和搜索工作项、关联它们、执行签入等)。任何信息将不胜感激,因为这两个解决方案之间在我们需要编写多少代码方面存在很大差异。
We develop some product using an internal design tool that stores information in XML files. To provide proper integration with TFS we've also coded a provider that tracks, in TFS, checkin and checkout operation from users while they're using the designer, without any need to interact with Team Explorer.
Now the requirement is to add also the related workitem when checking in files, I've googled around and browsed some SDK samples but I was not able to understand if there is a way to show the same windows form that allow user to associate code to workitem from code or do we have to implement the full windows form from code (retrieve and search workitems, associate them, perform the checkin and so on). Any info would be appreciated because between the two solution there is a lot of difference in term of how much code we need to write.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是一些有助于更新工作项的代码。另外,请尝试[此链接][1]以获取更多信息。
Here is some code to help with updating workItems. Also, try [this link][1] for more information.
我已经与 MS 咨询公司核实过,如果不诉诸不太安全的低级代码,就无法显示 TFS 或 shell 扩展使用的签入窗口。
因此,唯一可能的解决方案是使用 TFS Api 创建一个新的 C# 控件/项目来模拟 TFS 签入窗口。
问候
马西莫
I've checked with MS consultancy and there is no way to show the checkin window used by TFS or the shell extension without resorting to low level code that is not really safe.
So only possible solution is to use the TFS Api to create a new C# control/project to mimic the TFS checkin window.
Regards
Massimo