Missing XML comment for publicly visible type or member

前端 未结 16 2332
甜味超标
甜味超标 2020-11-30 17:16

I am getting this warning: \"Missing XML comment for publicly visible type or member\".

How to solve this?

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 17:38

    This is because an XML documentation file has been specified in your Project Properties and Your Method/Class is public and lack documentation.
    You can either :

    1. Disable XML documentation:

      Right Click on your Project -> Properties -> 'Build' tab -> uncheck XML Documentation File.

    2. Sit and write the documentation yourself!

    Summary of XML documentation goes like this:

    /// 
    /// Description of the class/method/variable
    /// 
    ..declaration goes here..
    

提交回复
热议问题