472,146 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Broken Intellisense for users of my API

Hi All,

I have created an API in C# for developers to use at my workplace, and have
commented it fully. If I reference the DLL in a new class in my API
project, I get full intellisense on the methods, descriptions and
everything.

If I make a new project and include my API DLL, I do get Intellisense popus,
but they are missing the descriptions I created. ( I see only the method
signatures)

Ideas? Thanks in advance...
Nov 16 '05 #1
3 1455
notayoda,

When you compile your DLL, you should make sure that you have the
project setting to generate XML documentation set. When you do this, it
will generate a file with an XML extension that has the name of your output
file (minus the DLL extension).

When referencing your assembly, if that XML file is in the same
directory, then Intellisense will pick up the comments, and display them in
the editor.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"notayoda" <sr*************@hotmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an API in C# for developers to use at my workplace, and
have commented it fully. If I reference the DLL in a new class in my API
project, I get full intellisense on the methods, descriptions and
everything.

If I make a new project and include my API DLL, I do get Intellisense
popus, but they are missing the descriptions I created. ( I see only the
method signatures)

Ideas? Thanks in advance...

Nov 16 '05 #2
notayoda <sr*************@hotmail.com> wrote:
I have created an API in C# for developers to use at my workplace, and have
commented it fully. If I reference the DLL in a new class in my API
project, I get full intellisense on the methods, descriptions and
everything.

If I make a new project and include my API DLL, I do get Intellisense popus,
but they are missing the descriptions I created. ( I see only the method
signatures)

Ideas? Thanks in advance...


You need to also build the XML documentation file (specify it in the
project build configuration) and make sure it's got the same name as
the assembly (but with a .xml extension instead of .dll). Ship it to
your users along with the assembly.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #3
Yep, that did the trick! Thanks!

Project Properties ->Configuration Properties->Build
Outputs
XML Documentation file (type in name of your DLL here)
When you build this will create an XML file along with your DLL.

To use your DLL with comments enabled in a new project, reference the DLL in
the project and make sure that you have this xml file in the same folder as
the referenced DLL.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
notayoda,

When you compile your DLL, you should make sure that you have the
project setting to generate XML documentation set. When you do this, it
will generate a file with an XML extension that has the name of your
output file (minus the DLL extension).

When referencing your assembly, if that XML file is in the same
directory, then Intellisense will pick up the comments, and display them
in the editor.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"notayoda" <sr*************@hotmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an API in C# for developers to use at my workplace, and
have commented it fully. If I reference the DLL in a new class in my API
project, I get full intellisense on the methods, descriptions and
everything.

If I make a new project and include my API DLL, I do get Intellisense
popus, but they are missing the descriptions I created. ( I see only the
method signatures)

Ideas? Thanks in advance...


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by andrew.queisser | last post: by
9 posts views Thread by Ulf Lindback | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.