StronglyTypedId icon indicating copy to clipboard operation
StronglyTypedId copied to clipboard

Generating documentation files errors out on CS1573

Open jdrst opened this issue 10 months ago • 0 comments

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?

jdrst avatar Apr 14 '25 10:04 jdrst