C# Class Library method summaries are not showing in intellisense

眉间皱痕 提交于 2019-12-21 12:03:31

问题


Fairly self-explanatory I feel


回答1:


I'm guessing here, but if this is your class library, you have to make sure you actually build the XML documentation file, otherwise the method summaries will only be available from within the same assembly.

Project Properties -> Build Tab -> Output section -> Check "XML documentation file"

Obviously, as Mitchel points out, you have to import it too, but this is generally automatic when you add an assembly reference (as long as it exists).




回答2:


When you build the class library, be sure to put the .xml file that has the documentation in the same folder as the .dll. Intellisense will then pick this up.



来源:https://stackoverflow.com/questions/2387959/c-sharp-class-library-method-summaries-are-not-showing-in-intellisense

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