简体   繁体   English

C#类库方法摘要未显示在智能感知中

[英]C# Class Library method summaries are not showing in intellisense

我觉得很不言自明

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. 我在这里猜测,但是如果这是您的类库,则必须确保实际构建XML文档文件,否则方法摘要仅可从同一程序集中获得。

Project Properties -> Build Tab -> Output section -> Check "XML documentation file" 项目属性->生成选项卡->输出部分->检查“ XML文档文件”

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). 显然,正如Mitchel指出的那样,您也必须导入它,但这通常在添加程序集引用(只要它存在)时是自动的。

When you build the class library, be sure to put the .xml file that has the documentation in the same folder as the .dll. 在构建类库时,请确保将包含文档的.xml文件与.dll放在同一文件夹中。 Intellisense will then pick this up. 然后,Intellisense将对此进行处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM