Skip to content

<see> xml doc topic doesn't mention the href attribute  #4176

Closed

Description

@mairaw

The syntax on the topic only shows <see cref="member"/> but not the see href syntax:
<see href="url">link text</see>

edit: added topic details


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added
    help wanted
    on Jan 23, 2018
  2. eduard-malakhov commented on Jan 23, 2018

    @eduard-malakhov

    @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:

    • Doxygen documentation only mentions the <see cref=""/> syntax;
    • 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?

  3. mairaw commented on Jan 25, 2018

    @mairaw
    ContributorAuthor

    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?

  4. eduard-malakhov commented on Jan 25, 2018

    @eduard-malakhov

    @mairaw regarding this

    VS IntelliSense does recognize those even though it doesn't offer them as an option when you're doing the /// commments.

    I can say that in my VS2017 IntelliSense reports no errors even on the following code.

    using System;
    
    namespace ConsoleApp4
    {
        /// <summary>
        /// <see attribute=""/>
        /// </summary>
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Hello World!");
            }
        }
    }
    

    untitled

    And even generates a documentation file.

    <?xml version="1.0"?>
    <doc>
        <assembly>
            <name>ConsoleApp4</name>
        </assembly>
        <members>
            <member name="T:ConsoleApp4.Program">
                <summary>
                <see attribute=""/>
                </summary>
            </member>
        </members>
    </doc>
    

    Is it possible that IntelliSense does not validate documentation comments?

  5. removed
    help wanted
    on Jan 29, 2018
  6. mairaw commented on Jan 29, 2018

    @mairaw
    ContributorAuthor

    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.

  7. jcouv commented on Mar 20, 2018

    @jcouv
    Contributor

    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).

  8. KathleenDollard commented on Mar 20, 2018

    @KathleenDollard
    Contributor

    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.

  9. BillWagner commented on Mar 20, 2018

    @BillWagner
    Member

    Do we know anything about how much usage Doxygen and Sandcastle each get?

    No, and I'm not sure how we could get reliable info on their usage.

  10. added
    blocked
    on Mar 26, 2018
  11. added this to the Backlog milestone on Mar 26, 2018
  12. mairaw commented on Mar 26, 2018

    @mairaw
    ContributorAuthor

    Moving this to the backlog until this is officially supported in VS. /cc @BillWagner

  13. 6 remaining items

  14. jozefizso commented on Nov 29, 2020

    @jozefizso
    Contributor

    It would be great to make the support for href attribute in <see href=""/> tag official.

  15. sharwell commented on Nov 29, 2020

    @sharwell
    Contributor

    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.

  16. added
    won't fix
    on Jan 25, 2021
  17. dotnet-bot commented on Jan 25, 2021

    @dotnet-bot
    Contributor

    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.

  18. erichiller commented on Apr 14, 2021

    @erichiller

    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

  19. BillWagner commented on May 19, 2021

    @BillWagner
    Member

    reopening to address as part of the XML doc cleanup

  20. removed
    won't fix
    on May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions