Missing XML comment for publicly visible type or m

2019-01-08 03:32发布

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

How to solve this?

15条回答
仙女界的扛把子
2楼-- · 2019-01-08 04:02

There is another way you can suppress these messages without the need for any code change or pragma blocks. Using Visual Studio - Go to project properties > Build > Errors and Warnings > Suppress Warnings - append 1591 to list of warning codes.

enter image description here

查看更多
SAY GOODBYE
3楼-- · 2019-01-08 04:07

File > Edit > View Project (click)

Bottom of the drop down bow (click on Open/Current work > Properties), opened project properties page at "Build" under "Output". "Uncheck" XML Documentation checkbox.

Rebuild and no warnings.

查看更多
贪生不怕死
4楼-- · 2019-01-08 04:08

I wanted to add something to the answers listed here:

As Isak pointed out, the XML documentation is useful for Class Libraries, as it provides intellisense to any consumer within Visual Studio. Therefore, an easy and correct solution is to simply turn off documentation for any top-level project (such as UI, etc), which is not going to be implemented outside of its own project.

Additionally I wanted to point out that the warning only expresses on publicly visible members. So, if you setup your class library to only expose what it needs to, you can get by without documenting private and internal members.

查看更多
登录 后发表回答