You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<see> xml doc topic doesn't mention the href attribute #4176
@mairaw Is there a standard or another technical document we can refer to to make sure that that syntax is/must be supported too? I've made a quick research and here's what I found:
Sandcastle does mention <see href=""/> as a means to support external links; besides that, Sandcastle also supports the following: <see langword=""/>;
In my VS2017 version 15.5.2 autocompletion only offers one option for <see ... and it's <see cref=""/> (although <see href=""/> is processed and emitted in the XML as expected).
So, there's definitely more than one view on this and we might need some reference to determine which one is correct.
I guess, if we are positive that <see href=""/> must be described in the programming guide, we might also want to fix autocompletion if VS. Also, shall we consider <see langword=""/> for the guide too?
Yes, if we add see href, we should also add see langword. VS IntelliSense does recognize those even though it doesn't offer them as an option when you're doing the /// commments.
There were also some discussions around having the same docs available for VB. @KathleenDollard we'll need to sync to understand what are the options supported by VB.
From my experimentation, it looks like VS supports langword (it is offered as completion, it has its own completion list and it is displayed nicely in QuickInfo).
For href, there doesn't seem to be any support at the moment (C#/VB compilers or VS). If other tools support it, then we should file a request in Roslyn repo to support in IDE).
href isn't an officially supported attribute, but many tools support it anyway. There is a feature request on dotnet/csharplang to make it official, but it's unlikely to move forward in the near future.
This issue has been closed as part of the issue backlog grooming process outlined in #22351.
That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.
I too would very much like to see this incorporated. For reference for anyone else coming across this issue, here's the related issues dotnet/csharplang#1764 and dotnet/roslyn#25671
Activity
eduard-malakhov commentedon Jan 23, 2018
@mairaw Is there a standard or another technical document we can refer to to make sure that that syntax is/must be supported too? I've made a quick research and here's what I found:
<see cref=""/>syntax;<see href=""/>as a means to support external links; besides that, Sandcastle also supports the following:<see langword=""/>;<see ...and it's<see cref=""/>(although<see href=""/>is processed and emitted in the XML as expected).So, there's definitely more than one view on this and we might need some reference to determine which one is correct.
I guess, if we are positive that
<see href=""/>must be described in the programming guide, we might also want to fix autocompletion if VS. Also, shall we consider<see langword=""/>for the guide too?mairaw commentedon Jan 25, 2018
Good points @eduard-malakhov! I'm not sure about the technical docs that show the ones that must be supported. The docs here seem to match the common options covered in the C# spec: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#recommended-tags
Yes, if we add see href, we should also add see langword. VS IntelliSense does recognize those even though it doesn't offer them as an option when you're doing the /// commments.
@BillWagner @jcouv @gafter any thoughts on this?
eduard-malakhov commentedon Jan 25, 2018
@mairaw regarding this
I can say that in my VS2017 IntelliSense reports no errors even on the following code.
And even generates a documentation file.
Is it possible that IntelliSense does not validate documentation comments?
mairaw commentedon Jan 29, 2018
There were also some discussions around having the same docs available for VB. @KathleenDollard we'll need to sync to understand what are the options supported by VB.
jcouv commentedon Mar 20, 2018
From my experimentation, it looks like VS supports
langword(it is offered as completion, it has its own completion list and it is displayed nicely in QuickInfo).For
href, there doesn't seem to be any support at the moment (C#/VB compilers or VS). If other tools support it, then we should file a request in Roslyn repo to support in IDE).KathleenDollard commentedon Mar 20, 2018
Do we know anything about how much usage Doxygen and Sandcastle each get?
I am a bit hesitant to include a feature that will be ignored by some tools.
BillWagner commentedon Mar 20, 2018
No, and I'm not sure how we could get reliable info on their usage.
mairaw commentedon Mar 26, 2018
Moving this to the backlog until this is officially supported in VS. /cc @BillWagner
6 remaining items
jozefizso commentedon Nov 29, 2020
It would be great to make the support for
hrefattribute in<see href=""/>tag official.sharwell commentedon Nov 29, 2020
hrefisn't an officially supported attribute, but many tools support it anyway. There is a feature request on dotnet/csharplang to make it official, but it's unlikely to move forward in the near future.dotnet-bot commentedon Jan 25, 2021
This issue has been closed as part of the issue backlog grooming process outlined in #22351.
That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the
@dotnet/docsteam for visibility.erichiller commentedon Apr 14, 2021
I too would very much like to see this incorporated. For reference for anyone else coming across this issue, here's the related issues dotnet/csharplang#1764 and dotnet/roslyn#25671
BillWagner commentedon May 19, 2021
reopening to address as part of the XML doc cleanup