Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CS1591 warnings for all generated files #1

Closed
wants to merge 1 commit into from

Conversation

mthierba
Copy link
Owner

If the AnyOf generator is used in a project with documentation generation enabled, a vast number of CS1591 compiler warnings is issued since none of the generated types contain xml code docs.

image

The C# compiler provides no capability to suppress such warnings within a sub-scope of the project, as is documented at length here: dotnet/roslyn#41171.

Hence, the only two possible solutions are to (1) emit xml docs, or (2) disable the warning for the generated files using a #pragma warning.

This PR does the latter.

@mthierba mthierba closed this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant