Skip to content

Missing summary when properties have "<inheritdoc />" #1189

Description

@Dona278

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

We use XmlCommentsTransformer to provide description of object properties by load all xml documentations generated and copied into output folder.
All works good but we noticed that if a type have properties with "" the summary (or others) will never resolved.

Expected Behavior

I expected that summaries will be inherited.

Steps To Reproduce

public sealed class DateRange : RangeBase<DateOnly>
{
}

public abstract class RangeBase<T> : IRange<T> where T : struct
{
    /// <inheritdoc />
    public T? Lower { get; set; }

    /// <inheritdoc />
    public T? Upper { get; set; }
}

public interface IRange<T> where T : struct
{
    /// <summary>
    /// Gets or sets the lower bound of the range.
    /// </summary>
    T? Lower { get; set; }

    /// <summary>
    /// Gets or sets the upper bound of the range.
    /// </summary>
    T? Upper { get; set; }
}

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions