在 Word 中显示 TFS 查询

Display TFS queries in Word

我已经进行了几个月的编程,现在我的任务是为 Word 创建一个新的功能区选项卡,我可以在其中选择一个模板和一个要在该模板中显示的 TFS 查询。它已经与 Excel 中的完全一样。我有 Tab 和一些按钮,例如 'Select Query',但如何获取 TFS 项目集合,以及如何创建 WinForm 作为选择项目的对话框?我是 Visual Studio 中整个 Office 的新手。 有没有办法获取 Excel 'Team'-Tab 后面的代码?

查看 http://www.modernrequirements.com/。这个工具已经可以为您做这样的事情了。

但如果你想重新发明轮子,那么你可以检查https://dev.office.com/docs/add-ins/get-started/create-and-debug-office-add-ins-in-visual-studio for information how to create your own plugin. You custom office plugin with connection to the TFS api (see: https://www.visualstudio.com/en-us/integrate/api/overview)会让你走得更远。