473,748 Members | 10,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Has the XML Documentation been "forgotten" in VB.NET?

Hi There!

In C# you can use /// to add comments that can produce XML documentation.
What about in VB????

Thanks,
Don
Nov 16 '05 #1
14 1610
Don Wash wrote:
In C# you can use /// to add comments that can produce XML documentation.
What about in VB????


'''

But only in VS2005 and later...

See also: Suggestion Details: Don't use ''' for XML comment designation
http://lab.msdn.microsoft.com/Produc...Feedback.aspx?
feedbackid=d384 61b0-1cc0-4f2b-9b84-33276943f7eb

--
Greetings
Jochen
Nov 16 '05 #2
"Don Wash" <do*@wash.com > wrote in message
news:uv******** ******@TK2MSFTN GP10.phx.gbl...
In C# you can use /// to add comments that can produce XML documentation.
What about in VB????


No.
Nov 16 '05 #3
Don,

Any reason you send this to the C# newsgroup maybe you have a good reason,
however it gives me only the idea you only want to create a trolling thread.

Cor
Nov 16 '05 #4
Hi,

Addin to make xml documentation

http://www.gotdotnet.com/workspaces/...a-86bdf39a17dd

Ken
--------------------
"Don Wash" <do*@wash.com > wrote in message
news:uv******** ******@TK2MSFTN GP10.phx.gbl...
Hi There!

In C# you can use /// to add comments that can produce XML documentation.
What about in VB????

Thanks,
Don

Nov 16 '05 #5
On 2004-08-27, Don Wash <do*@wash.com > wrote:
Hi There!

In C# you can use /// to add comments that can produce XML documentation.
What about in VB????


In VB.Net there's a number of addins that provide this, but as you've
seen it's not included in the current Visual Studio, now is the ability
to pick up custom documentation in Intellisense included.

Apparently these will be added to the next version of VS.

Nov 16 '05 #6
* "Don Wash" <do*@wash.com > scripsit:
In C# you can use /// to add comments that can produce XML documentation.
What about in VB????


From my FAQ (<URL:http://dotnet.mvps.org/dotnet/faqs/>):

Adding tooltips in intellisense for VB.NET assemblies and creating HTML Help
documentation:

VS.NET takes the text shown in intellisense tips from an XML file that is
provided in addition to the assembly (for example, a DLL). The XML file
must have the same name as the corresponding DLL with ".xml" appended and
has to be placed in the same folder as the assembly (assembly "Foo.dll",
XML file "Foo.dll.xm l").

The format of the XML file taken by VS.NET is specified here:

<URL:http://msdn.microsoft. com/library/en-us/csref/html/vclrfprocessing xmlfile.asp>

For C#, VS.NET creates this XML file automatically (compiler option "/doc").
For VB.NET, that's currently not supported, but this will be possible in VB
2005.

You can create the XML file by hand, but notice that this will take a lot of
time and it will be hard to keep the file up to date when parts of the
assembly change. It's much easier to use one of the tools listed below to
create the XML file. Tools like NDOC will take the XML file and create an
HTML Help file from the XML formatted data.

One easy way to create the XML file is to provide information for tooltips
as XML comments inside the VB.NET source files and then use tools like
VB.DOC to create the XML file that contains the data. Then you can copy
this file into the assembly's directory to provide information to VS.NET
that enables it to display tooltips, or you can create a help file. The
help file can be deployed with the assembly and can be used by other
developers who use the assembly as reference.

For VB.NET 2002/2003:

VB Commenter
<URL:http://www.gotdotnet.c om/team/ide/>
-> "VB Commenter"

XML Documentation
<URL:http://www.gotdotnet.c om/team/vb/>
-> "XML Documentation"

VBXC - VB.NET XML Commentor
<URL:http://vbxmldoc.tor-erik.net/>

NDOC (formerly DOC.NET)
<URL:http://ndoc.sourceforg e.net/>

VB.DOC
<URL:http://vb-doc.sourceforge .net/>

<URL:http://www.gotdotnet.c om/Community/Workspaces/Workspace.aspx? id=112b5449-f702-46e2-87fa-86bdf39a17dd>

XML comments will be introduced to VB in version 2005 ("Whidbey").

C# XML comments:

C# Programmer's Reference -- Recommended Tags for Documentation Comments
<URL:http://msdn.microsoft. com/library/en-us/csref/html/vclrfTagsForDoc umentationComme nts.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 16 '05 #7
Jochen,
Interesting suggestion.

I would prefer '@ to '/, however that is such a personal preference I'm not
debating which is better.

However I am able to live with ''' as I view ''' as duplicate comment
characters, which happens to be what C# is with /// (duplicated comment
characters). Further they both happen to be a sequence of 3 characters.

FWIW I would prefer '@ to ''' also, however I am able to live with anything
as long as we get support for XML documentation! :-) VS.NET 2005 Beta 1
seems to have good support for it!

One of the tools that Herfried identified had an option to support '@ or
other sequence you choose (such as '/) however I found its support for it
was not the best. Also the version I tried had a couple quirks...

Just a thought
Jay
"Jochen Kalmbach" <no************ ********@holzma .de> wrote in message
news:Xn******** *************** **********@127. 0.0.1...
Don Wash wrote:
In C# you can use /// to add comments that can produce XML documentation. What about in VB????


'''

But only in VS2005 and later...

See also: Suggestion Details: Don't use ''' for XML comment designation
http://lab.msdn.microsoft.com/Produc...Feedback.aspx?
feedbackid=d384 61b0-1cc0-4f2b-9b84-33276943f7eb

--
Greetings
Jochen

Nov 16 '05 #8
H Cor,

Sorry you feel that way. I'm posting to C# newsgroup because C# programmers
has access built-in documentation functionality and when they program with
VB.NET they will definitely look for a workaround, while native VB.NET
programmers who never used C# probably have no clue about XML documentation
that I'm talking about.

And seriously, why documentation support for VB.NET has been not included
but only for C#? I thought VS.NET is suppose to be one IDE for all languages
without discrimination?

I hope it helps.
Don

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:eq******** ******@TK2MSFTN GP15.phx.gbl...
Don,

Any reason you send this to the C# newsgroup maybe you have a good reason,
however it gives me only the idea you only want to create a trolling thread.
Cor

Nov 16 '05 #9
VB 2005 will have native support for XML comments. For VB.NET 2003 you can
use the VBCommentor Power Toy.

http://www.gotdotnet.com/workspaces/...a-86bdf39a17dd

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Don Wash" <do*@wash.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
H Cor,

Sorry you feel that way. I'm posting to C# newsgroup because C# programmers has access built-in documentation functionality and when they program with
VB.NET they will definitely look for a workaround, while native VB.NET
programmers who never used C# probably have no clue about XML documentation that I'm talking about.

And seriously, why documentation support for VB.NET has been not included
but only for C#? I thought VS.NET is suppose to be one IDE for all languages without discrimination?

I hope it helps.
Don

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:eq******** ******@TK2MSFTN GP15.phx.gbl...
Don,

Any reason you send this to the C# newsgroup maybe you have a good reason, however it gives me only the idea you only want to create a trolling

thread.

Cor


Nov 16 '05 #10

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

Similar topics

14
3218
by: lawrence | last post by:
To call I would do something like: $headline = McSelectJustOneField::callDatastore("cbHeadline"); Is this the correct use of the static keyword, to implement a Singleton design?
5
2602
by: W.Guerlich | last post by:
I've got a Java servlet that delivers large database resultsets transformed to Excel with the HSSF library. In some cases it takes more than 15 minutes before transformation is done and content can be delivered to the browser. I want to show the "Save As" dialog as early as possible so the user knows he's not lost and forgotten. I already tried to send the response headers immediately after receiving the request including content...
23
3576
by: Invalid User | last post by:
While trying to print a none empty list, I accidentaly put an "else" statement with a "for" instead of "if". Here is what I had: if ( len(mylist)> 0) : for x,y in mylist: print x,y else: print "Empty list" which was supposed to be:
68
4358
by: Marco Bubke | last post by:
Hi I have read some mail on the dev mailing list about PEP 318 and find the new Syntax really ugly. def foo(x, y): pass I call this foo(1, 2), this isn't really intuitive to me! Also I don't like the brackets.
36
6394
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
11
2100
by: Joseph Turian | last post by:
Fellow hackers, I have a class BuildNode that inherits from class Node. Similarly, I have a class BuildTree that inherits from class Tree. Tree includes a member variable: vector<Node> nodes; // For clarity, let this be "orig_nodes" BuildTree includes a member variable:
14
1272
by: Don Wash | last post by:
Hi There! In C# you can use /// to add comments that can produce XML documentation. What about in VB???? Thanks, Don
9
7473
by: Ben Bacarisse | last post by:
I am porting a program from the Windows world to the Linux world. The source uses MS's new "safer" string functions such as: strcat_s(dest, size, source); but there are also calls such as: strcat_s(dest, source); I gather that the MS C++ library includes a option whereby some
84
8584
by: aarklon | last post by:
Hi all, I found an interesting article here:- http://en.wikipedia.org/wiki/Criticism_of_the_C_programming_language well what do you guys think of this article....??? Is it constructive criticism that needs to be appreciated always...???
0
8984
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.