Recently in the writing Web API project, use the Microsoft Web API help page component for automatic generation of API documentation, see Blog: https://www.cnblogs.com/lenmom/p/9081363.html, the effect is good, but the problem comes. , open the code today and see a lot of warnings
CS1591 missing XML comment for public visible type or member
This is due to code writing that is not standardized, and in order to eliminate these warnings, the possible methods are as follows:
1. Project--Generate, suppress limit warning, enter 1591, warning number, which is for the entire project level
2. Add code to the code to suppress the warning, note that this is only for file-level
#pragma warning disable 1591
If you want to restore the display warning prompt, use the following statement
#pragma warning restore 1591
3. Do not generate an XML document, the warning is not displayed, but this method is not used in this scenario.
C # CS1591 Missing XML Comment problem resolution for public visible types or members