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

Add XML comments to public members (resolves CS1591 warnings) #225

Open
wants to merge 1 commit into
base: v8/dev
Choose a base branch
from

Conversation

michaelchart
Copy link

When XML documentation is enabled for the project (see screenshot below), the CS1591 compiler warning means that any public members of classes must have a documentation comment to prevent a warning.

image

There's currently no way to disable this documentation requirement for generated code so there seems to be no workaround for this issue - see dotnet/roslyn#12702.

This PR adds <summary> comments to the previously uncommented public members of the generated models classes. An alternative approach could be to add #pragma warning disable 1591 comments around these members, but it seemed just as easy to add a simple documentation comment. Resolves #164

When XML documentation is enabled for the project, the CS1591 compiler warning means that any public members must have a comment to prevent a warning.

There's also currently no way to disable this documentation requirement for generated code: dotnet/roslyn#12702.

This commit adds <summary> comments to the previously uncommented members of the generated models classes.
@michaelchart
Copy link
Author

@zpqrtbnk Any thoughts on whether this PR is OK, and if it can be merged soon?

@zpqrtbnk
Copy link
Collaborator

Hey. Sorry for delay. PR is OK and will be merged somehow. But, as you may be aware, ModelsBuilder development is being reorganized at the moment. Will announce dates, eventually.

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.

Generate full Xml documentation
2 participants