Skip to content

Cross-reference silently ignored #5670

Open

Description

Operation System: Windows

DocFX Version Used: 2.51.0 (NuGet)

Template used: default

Steps to Reproduce:

  1. Unzip the attached minimal repro : docfx-bug.zip
  2. Run docfx with docfx.exe --intermediateFolder .\obj -o .\build --serve --debug
  3. Observe the warning Invalid cref value "!:A.B.BaseClass.Field" found in triple-slash-comments for OtherClass, ignored
  4. Open http://localhost:8080/api/A.B.C.html and observe the "See: ." missing the reference to A.B.BaseClass.Field.

So far so good, even though I am not sure why cref doesn't work here. Anyway, on to the actual bug:

  1. Change other.cs and replace cref with xref
  2. Run docfx again (same args)
  3. Observe no warning
  4. Open http://localhost:8080/api/A.B.C.html and observe again the "See: ." missing the reference to A.B.BaseClass.Field.

Expected Behavior:

  • Either a warning about an invalid reference (although I don't see why... but I am not an xref expert)
  • Or actually the cross-reference generating a text with a link (hyperlink)

Actual Behavior:

Cross-reference XML tag is copied as-is to the output, and not rendered by the browser which cannot understand e.g. <see> tags.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    dotnet: xml-commentXML comment for .NET API reference docsxrefCross reference another document using unique IDs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions