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 :
Disable XML documentation:
Right Click on your Project -> Properties -> 'Build' tab -> uncheck XML Documentation File.
Sit and write the documentation yourself!
Summary of XML documentation goes like this:
/// <summary>
/// Description of the class/method/variable
/// </summary>
..declaration goes here..
Fill in the documentation comments (great, but time-consuming)
Turn off the comment generation (in project properties)
Disable the warning in project properties (in 'Project properties' go to Project properties -> Build > "Errors and warnings" (section), Suppress Warnings (textbox), add 1591 (comma separated list))
Use #pragma warning disable 1591 to disable the warning just for some bits of code (and #pragma warning restore 1591 afterwards)
Ignore the warnings (bad idea - you'll miss new "real" warnings)
Jon Skeet's answer works great for when you're building with VisualStudio. However, if you're building the sln via the command line (in my case it was via Ant) then you may find that msbuild ignores the sln supression requests.
Adding this to the msbuild command line solved the problem for me:
I know this is a really old thread, but it's the first response on google so I thought I'd add this bit of information:
This behavior only occurs when the warning level is set to 4 under "Project Properties" -> "Build". Unless you really need that much information you can set it to 3 and you'll get rid of these warnings. Of course, changing the warning level affects more than just comments, so please refer to the documentation if you're unsure what you'll be missing: https://msdn.microsoft.com/en-us/library/thxezb7y.aspx
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 :
Summary of XML documentation goes like this:
5 options:
#pragma warning disable 1591
to disable the warning just for some bits of code (and#pragma warning restore 1591
afterwards)Jon Skeet's answer works great for when you're building with VisualStudio. However, if you're building the sln via the command line (in my case it was via Ant) then you may find that msbuild ignores the sln supression requests.
Adding this to the msbuild command line solved the problem for me:
I got that message after attached an attribute to a method
But the correct way was this:
I know this is a really old thread, but it's the first response on google so I thought I'd add this bit of information:
This behavior only occurs when the warning level is set to 4 under "Project Properties" -> "Build". Unless you really need that much information you can set it to 3 and you'll get rid of these warnings. Of course, changing the warning level affects more than just comments, so please refer to the documentation if you're unsure what you'll be missing:
https://msdn.microsoft.com/en-us/library/thxezb7y.aspx
Setting the warning level to 2 suppresses this messages. Don't know if it's the best solution as it also suppresses useful warnings.