Question

At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know where this is?

Was it helpful?

Solution

Right-click your project and goto Properties.

Select the Build tab on the left.

Under Supress Warnings enter... 1591,1592,1573,1571,1570,1572.

Though I don't recommend this because the whole point of generating documentation is to have it documented. If you don't like the warnings you can de-select the warning option in the errors list pane of VS.

OTHER TIPS

If you have a .NET project, the setting is on Project properties > Build tab. Near the bottom, in the Output section, there is a check box labeled "XML documentation file".

The only way I know is turning off XML documentation generation. This can be done on under Project properties / Compile / Generate XML documentation file.

You can either turn off the documentation generation for the whole project in the project properties (you'll need to do that for each build configuration), you can disable the warnings on the whole project in the project properties, or you can disable the warning on individual code blocks using the "#pragma warning" directive.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top