简体   繁体   English

在Visual Studio C#中使用自定义DLL时,如何显示自定义的intellisense注释?

[英]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.

相关问题 如何让XML注释出现在另一个项目(dll)中? - How do you get XML comments to appear in a different project (dll)? 如何让 C# Dotnet Intellisense 在 Ubuntu 上使用 Visual Studio Code - How do I get C# Dotnet Intellisense to work on Visual Studio Code on Ubuntu 如何确定C#Visual Studio项目生成的可执行文件和DLL? - How do you determine what executable and DLL’s a C# Visual Studio project produces? 具有Intellisense的自定义编辑器[Visual Studio] - Custom Editor with Intellisense [Visual Studio] 创建自定义MSBuild任务时如何从C#代码获取当前项目目录? - How do you get the current project directory from C# code when creating a custom MSBuild task? 如何使用WPF在Visual C#2008中获得自定义应用程序名称和启动窗口名称? - How do I get a custom application name and starting window name in Visual C# 2008 using WPF? 在带有C#的Visual Studio中,如何在键入时自动显示(),例如.Focus()? - In Visual Studio with C#, how do I make the () appear automatically when I type, such as .Focus()? 如何在IntelliSense中为Visual Studio中的函数添加注释? - How to have comments in IntelliSense for function in Visual Studio? 使用 Visual Studio 编译时,如何更改 C# DLL 的扩展名? - How do I change the extension of a C# DLL when compiling with Visual Studio? 插入符号位于虚拟空间中时,在Visual Studio中为自定义语言提供智能感知 - Provide intellisense for custom language in Visual Studio when caret is in virtual space
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM