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

Create a well-formed XML file in C# documents to avoid complier warning and error #841

Closed
4 tasks done
BethanyZhou opened this issue Sep 28, 2021 · 0 comments
Closed
4 tasks done
Labels

Comments

@BethanyZhou
Copy link
Contributor

BethanyZhou commented Sep 28, 2021

Create a well-formed XML file in C# documents to avoid complier warning and error

If we want to add description in docs for modules' properties and methods, we need generate a well-formed XML file per dll file and provide them to docs team.

There are few issues in our current c# code detected by referring https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/recommended-tags.

Bad format

The space in tag < see> should be removed.

/// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
->
/// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.

Existing bugs

See #842

Inappropriate usage of tags

See #843

Many methods have no comments for them.

Error

image

Solution:

  • Fill in the documentation comments (great, but time-consuming)
  • Turn off the comment generation (in project properties)
  • Disable the warning in project properties
@BethanyZhou BethanyZhou changed the title [WIP]Create a well-formed XML file in C# documents to avoid complier warning and error Create a well-formed XML file in C# documents to avoid complier warning and error Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants