Reference TFS work item from code comment

∥☆過路亽.° 提交于 2019-12-06 19:31:21

问题


In Visual Studio (2012+) I want a clickable reference from a code comment to a TFS work item. Is there a simple way to do this, and is this also possible from comments within the body of a function (not being the summary of the function)?

So I want something like this:

/// <summary>
/// Example of a summary
/// </summary>
static void Main()
{
    int dummy = 1; //Should be 1 according to @Task1234 <- should be a hyperlink
}

And rather not something like this:

/// <summary>
/// Example of a summary, see <a href="http://mytfsserver:8080//tfs/myCollection/Branch/_workItems#id=1234"> Task 1234 </a>.
/// </summary>
static void Main()
{
}

Some tag reading material: Recommended Tags for Documentation Comments (C# Programming Guide)


回答1:


No, that isn't possible - not without writing an addin that pre-parses the page looking for likely links.

I know there was an addin like this for FogBugz (and other bug/workitem tracking systems), but I've not seen one specifically for TFS (although that doesn't mean one doesn't exist).



来源:https://stackoverflow.com/questions/25379103/reference-tfs-work-item-from-code-comment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!