C# Class Library method summaries not showing in i

2019-04-20 15:06发布

问题:

(VS 2008) I'm using a C# library for my VB.NET project. And the method summary/notes or what they are called do not show in 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?

EDIT: Still unresolved. Now building library dll + xml file, but how to import the xml file in my vb project? See image: http://i52.tinypic.com/25kh5xw.png

回答1:

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. After that include the new library in your VB.Net project.



回答2:

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



回答3:

If you're using source control (TFS or Github) then you need to the following:

  • Check in ( Push) for safe return point (base line)
  • Delete the references from the project.
  • Delete the custom dll's from the solution.

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. This did not include the summaries for me.

  • Check in (push). dll's are now removed from source control as well.
  • Drag and drop the dll's (including xml) into the solution (I recommend using this method for including dll's
  • Add references to these dll's via Browse.
  • Check if you have summaries.
  • Check in (push).