Force Documentation in VS(2010)

我的未来我决定 提交于 2019-12-01 11:09:11

问题


I am simply searching how to obtain errors/warning for each function/member that isnt documented.

Im pretty sure I managed to do this on one of my projects, but cant find how to do it here on my workstation.

I have looked into the project props, the solution props, but cant find it.

I must have missed something, or maybe I could do this at home with an extension.

Or it could also be because i am currently working on a VB.Net project, and not a C# project. Behavior changes considerably between C# and VB.

And google isnt helping me out too much ...

Edit : A small screenshot, in French, sorry about that. So some translation : "Compiler" is the Build Tab Avertissements = Warning

Thanks


回答1:


I don't believe this is possible for VB.NET projects.

StyleCop, a code analyzer that integrates with Visual Studio, is capable to detecting missing documentation, as well as very many unrelated things. You'll have to configure the settings yourself to keep only the necessary rules on. The project's .chm contains all of the rules; SA1600 is the rule you're looking for, but there may be other handy ones.

You can also use Sandcastle to find missing documentation by looking through outputted errors when building documentation.




回答2:


I can't say for VB.NET, but in C# projects whenever you enable "XML documentation file" checkbox in project properties (Build tab), Visual Studio starts complaining on each undocumented public member and type.



来源:https://stackoverflow.com/questions/9684212/force-documentation-in-vs2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!