Skip to content

XML doc generation support should resovle inheritdoc in additional files #60466

Open

Description

@captainsafia

The XML documentation comment support is currently able to handle resolving <inheritdoc /> references within the compilation assembly by reusing the logic that is used by Roslyn.

This same functionality isn't currently supported for documentation comments that are resolved directly from XML files. In those cases, we have no semantic model to go off of in order to determine the relationships between types. In those situations, we can come up with something rudimentary that tries to understand inheritance hierarchies based on the documentation ID.

Activity

  1. added
    area-minimal
    area-mvc
    on Feb 18, 2025
  2. added this to the Backlog milestone on Feb 18, 2025
  3. asleire commented on Jul 28, 2025

    @asleire

    Are there any possible workarounds? Swashbuckle is missing the same feature but someone was able to write a custom filter to support inheritdoc which works across assemblies

  4. captainsafia commented on Jul 28, 2025

    @captainsafia
    ContributorAuthor

    @asleire You can likely port the existing filter to an OpenApi transformer to achieve the same behavior in the built-in package.

    One option I considered to make this slightly easier was stashing the XML comment discovered statically in the data model associated with the operation/schema/response so that users could get the raw XML from the data model instead of having to re-read the XML files.

    I'm happy to review a PR for that change if you're interested in making an update to the XML source generator.

  5. added
    bug
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalarea-mvcbugfeature-openapi

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions