[英]How do you get custom intellisense comments to appear when using a custom DLL in Visual Studio C#?
I have been wondering how to setup intellisense comments for Visual Studio (minimum version 2013) and have been having trouble. 我一直想知道如何为Visual Studio(最低版本2013)设置智能感知注释,并且遇到了麻烦。 Using XML comments are only useful for generating the separate file for documentation.
使用XML注释仅对生成单独的文档文件有用。
What I want is to be able to put descriptions on functions/methods that show up when I hover over them in a project I am working that includes the DLL that should have these descriptions already set. 我想要的是能够对我正在工作的项目中悬停在其上的函数/方法进行描述,这些函数/方法包括应该已经设置了这些描述的DLL。 This is something trivial to be honest but it would be really nice to have this functionality.
老实说,这是一件微不足道的事情,但是拥有此功能真的很好。 But every thing I try seems to end with no comments being shown in the project when I hover over these functions/methods.
但是,当我将鼠标悬停在这些功能/方法上时,我尝试的每件事似乎都没有在项目中显示任何注释。
To restate my question, what needs to be done to allow for my descriptions of functions/methods to appear when I hover over them when they are used in a separate project/solution? 为了重申我的问题,当在单独的项目/解决方案中使用函数/方法的说明时,如果将它们悬停在它们上面,需要做些什么?
Okay. 好的。 I got it to work.
我知道了。 I just checked the XML documentation file box in Project Properties -> Build Tab.
我只是在“项目属性”->“构建选项卡”中选中了XML文档文件框。 I also needed to include it as Alexei Levenkov helped me out with in the comments.
我还需要将其包括在内,因为Alexei Levenkov在评论中帮助了我。 Doing both of those things allow them to show up.
做到这两点,它们就会出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.