Skip to content

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

@BethanyZhou

Description

@BethanyZhou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions