C# Class Library method summaries are not showing

2019-04-07 02:38发布

问题:

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.