从 dll 添加鼠标悬停摘要
我们的组织正在为未来几年的所有项目创建一个全局 dll。该 dll 已创建并实现以供使用,但我在使摘要标签正常工作时遇到问题。当将鼠标悬停在 dll 中的指定方法上时,我希望能够为任何开发人员显示摘要,这样他们就不必进入 dll 本身。
我来到这里发现了这个问题:如何添加鼠标悬停摘要
问题是,当从 dll 本身外部调用该方法时,不会显示摘要(但是,从 dll 内部,摘要显示得很好)。
有什么方法可以从 dll 中“导入”摘要,以便当任何用户将鼠标悬停在适当的方法上时就会显示摘要吗?
Our Organization is creating a global dll for all of our projects in the coming years. The dll is created, and implemented for use, but I'm having a problem getting the summary tags to work. When hovering over a specified method from the dll, I want to be able to display the summary for any developer, so they will not have to go into the dll itself.
I came here and found this question: How to add a mouse-over summary
The problem is, the summary is not displaying when the method is being called from outside the dll itself (however, from inside the dll the summary is displaying just fine).
Is there any way to "import" the summary from the dll so it will be displayed when any user hovers over the appropriate method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您没有将此项目添加到您的各种解决方案中,而是构建一次并复制 .dll,然后在项目中添加引用时浏览到 .dll。
当您复制此 .dll 时,您是否也在复制 ProjectName.xml 文件?这是编译器在生成时编写所有这些文档注释的地方,也是 Visual Studio 获取在 Intellisense 工具提示中显示的信息的地方。
有关 MSDN 的详细信息:XML 文档注释(C# 编程指南)
I assume you're not adding this project to your various solutions, but instead are building it once and copying the .dll around, and browsing out to the .dll when you add references in your projects.
When you copy this .dll around, are you also copying the ProjectName.xml file? That's where the compiler writes all of these documentation comments when you build, and is where Visual Studio gets the information it displays in the Intellisense tooltips.
More info on MSDN: XML Documentation Comments (C# Programming Guide)
我相信您应该考虑将 DLL 放入 GAC
I believe you should look at putting your DLL into the GAC