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 #21

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

mthierba
Copy link
Contributor

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.

@StefH StefH added the enhancement New feature or request label Jul 19, 2024
@StefH
Copy link
Owner

StefH commented Jul 19, 2024

A new version will be released later today.

@StefH StefH merged commit d367105 into StefH:main Jul 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants