473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

XML comments in the DLL not showing

I had created a class and added XML comments to its methods. Then I
compiled it as a DLL and added its reference to my project.

But when I type the names of its methods, the intellisense is not
showing XML comments. Am I doing something wrong or some other
attribute of the DLL needs to be set.
Sep 17 '08 #1
3 4324
psycho expressed precisely :
I had created a class and added XML comments to its methods. Then I
compiled it as a DLL and added its reference to my project.

But when I type the names of its methods, the intellisense is not
showing XML comments. Am I doing something wrong or some other
attribute of the DLL needs to be set.
If you compile from within Visual Studio, there is a setting in the
project properties ('build' tab) to generate an XML documentation file
which is off by default.

If you use a command line compiler, there has a switch for it, but I
don't know what.

Hans Kesting
Sep 19 '08 #2
re:
If you compile from within Visual Studio, there is a setting in the project properties
!('build' tab) to generate an XML documentation file which is off by default.

IIRC, that only works with C# source files.

What really happens is that Visual Studio extracts comments
from the source code and creates an XML comments file.

The DLLs don't include the comments in them.

Here's a good explanation/tutorial :

http://msdn.microsoft.com/en-us/magazine/cc302121.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Hans Kesting" <ne*********@spamgourmet.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
psycho expressed precisely :
>I had created a class and added XML comments to its methods. Then I
compiled it as a DLL and added its reference to my project.

But when I type the names of its methods, the intellisense is not
showing XML comments. Am I doing something wrong or some other
attribute of the DLL needs to be set.

If you compile from within Visual Studio, there is a setting in the project properties ('build' tab) to generate an
XML documentation file which is off by default.

If you use a command line compiler, there has a switch for it, but I don't know what.

Hans Kesting



Sep 19 '08 #3
On Sep 17, 12:52*am, psycho <paramvir.d...@gmail.comwrote:
I had created a class and added XML comments to its methods. Then I
compiled it as a DLL and added its reference to my project.

But when I type the names of its methods, the intellisense is not
showing XML comments. Am I doing something wrong or some other
attribute of the DLL needs to be set.
Disclaimer: VB.NET ... C# might do this a little differently

The intellisense does not run off of the XML comments. Intellisense
gets its info from attributes specified on the class. The one you are
referring to is the Description attribute. Theses types of attributes
are mostly in the System.ComponentModel namespace.

ex.

<Description("Arr matey,this be yer words here. Avast!")_
Public Class Pirate
Public isTodayNationalTalkLikeAPirateDay as Boolean = True
....
....
Other attributes of note are the BrowsableAttribute,
BindableAttribute, CategoryAttribute, DefaultValueAttribute ...
nevermind, just browse the ComponentModel namespace.

Arr, may yer coding be full of bountiful treasure!
-Norm
Sep 19 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Tim Parkin | last post by:
Terry Ready said: > YUCK< YUCK< YUCK. > <snip> > The pollenation site is one of the worst I have seen. The mockup page > has teeny type that IE will not enlarge. > <snip> > I care that the...
4
by: Brad Jones | last post by:
<Previously posted in microsoft.public.dotnet.framework.windowsforms> Hi all. Any suggestions here would be appreciated. Thanks for reading. I'm primarly a C++ developer but I've been trying to...
3
by: Dirk Deimeke | last post by:
Hello, I need help generating a sql statement for showing columns and comments of a table. Something like: db2 select columname,comment from dontknow where tablename='table' Thanks for...
10
by: William L. Bahn | last post by:
I'm looking for a few kinds of feedback here. First, there is a program at the end of this post that has a function kgets() that I would like any feedback on - including style. Second, for...
5
by: Christopher Kowalski | last post by:
If you notice, most Microsoft objects include a comment in the tool-tip that shows up when using intelli-sense auto-completion that describes that property or method. How can I add such comments...
1
by: Bob | last post by:
The xml comments I have on my public methods (using summary tag) only shows up in the project where the class itself is in. Once I compile the project (a class libraray project), and refrence the...
1
by: Rhy Mednick | last post by:
I can't seem to figure out how to use C# XML comments to document the members of an enumeration. Here's an example of what I have so far: /// <summary> /// Specifies how ink is to be scaled...
2
by: Vivek Kumar | last post by:
Hi all, I have to write a network server (sort of) and I am looking for your valuable comments. Currently I have written a prototype in VB6 but it can only handle up to 30 or so clients. I need...
2
by: Lee | last post by:
When looking through the object browser, I see comments that are shown for each property, method, etc. What is mechanism for doing this? Thanks, -- Warm Regards, Lee
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.