Skip to content

Generating documentation files errors out on CS1573 #174

@jdrst

Description

@jdrst

When generating documentation files via GenerateDocumentationFile for a project with strongly typed ids (and TreatWarningsAsErrors set to true) it errors out:

StronglyTypedIdDefaultsAttribute.g.cs(56,86): Error CS1573 : Parameter 'templateNames' has no matching param tag in the XML comment for 'StronglyTypedIdDefaultsAttribute.StronglyTypedIdDefaultsAttribute(string, params string[])' (but other parameters do)

See CS1573

Workaround:
Ignoring errors from just generated source outside of the generator is pretty complicated afaik, so the easiest option is to set <NoWarn>1573</NoWarn> in the csproj

Could this be disabled via pragma, similar to CS1591?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions