Skip to content

CS1591 - False positive for interface-implementing member #65386

@ErikWe

Description

@ErikWe

CS1591 - Missing XML comment for publicly visible type or member 'Type_or_Member'
Version - MSBuild 17.4.0.51802

Brief description

Members that implement an interface member will implicitly apply /// <inheritdoc/> (source) - and this works as expected. However, CS1591 is still issued for such members (unless /// <inheritdoc/> is explicitly added).

Sample

Hovering Foo.Bar in the following sample displays The bar. - but CS1591 is also issued for Foo.Bar.

// in .csproj: <GenerateDocumentationFile>true</GenerateDocumentationFile>

public interface IFoo
{
    /// <summary>The bar.</summary>
    int Bar { get; }
}

public class Foo : IFoo
{
    public int Bar => 2;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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