简体   繁体   English

C#类库方法摘要未在vb.net项目的intellisense中显示

[英]C# Class Library method summaries not showing in intellisense of vb.net project

(VS 2008) I'm using a C# library for my VB.NET project. (VS 2008)我正在为我的VB.NET项目使用C#库。 And the method summary/notes or what they are called do not show in intellisense. 并且方法摘要/注释或它们被称为什么不会在intellisense中显示。 Is this supposed to be like that? 这应该是那样的吗? Or is there something I must do to fix it? 或者我必须做些什么来解决它? And if not, will VS 2010 be able to do this? 如果没有,VS 2010能否做到这一点?

EDIT: Still unresolved. 编辑:仍未解决。 Now building library dll + xml file, but how to import the xml file in my vb project? 现在构建库dll + xml文件,但是如何在我的vb项目中导入xml文件? See image: http://i52.tinypic.com/25kh5xw.png 见图: http//i52.tinypic.com/25kh5xw.png

In C# library, go to the properties on the build tab, and check the checkbox for including XML documentation and specify the name and path. 在C#库中,转到构建选项卡上的属性,并选中包含XML文档的复选框,并指定名称和路径。 After that include the new library in your VB.Net project. 之后,在VB.Net项目中包含新库。

one reason could be resolved by importing the namespace needed 可以通过导入所需的命名空间来解决一个原因

another reason could be due to faulty writing 另一个原因可能是错误的写作

if you send the code where the problem is we might be able to help you 如果您发送问题所在的代码,我们可能会帮助您

If you're using source control (TFS or Github) then you need to the following: 如果您正在使用源代码管理(TFS或Github),则需要执行以下操作:

  • Check in ( Push) for safe return point (base line) 检查(推)安全返回点(基线)
  • Delete the references from the project. 删除项目中的引用。
  • Delete the custom dll's from the solution. 从解决方案中删除自定义dll。

At this point the libs are marked as [removed], if you would add them again at this point, they will just be marked as [changed] again. 此时,libs被标记为[已删除],如果此时再次添加它们,它们将再次标记为[已更改]。 This did not include the summaries for me. 这不包括我的摘要。

  • Check in (push). 入住(推)。 dll's are now removed from source control as well. dll现在也从源代码管理中删除了。
  • Drag and drop the dll's (including xml) into the solution (I recommend using this method for including dll's 将dll(包括xml)拖放到解决方案中(我建议使用方法包含dll)
  • Add references to these dll's via Browse. 通过Browse添加对这些dll的引用。
  • Check if you have summaries. 检查您是否有摘要。
  • Check in (push). 入住(推)。

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

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