473,396 Members | 1,655 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,396 software developers and data experts.

XML COmment woes in VS2005

I originally posted this in microsoft.public.xml ... my apologies to
those to who read both groups ...
Someone please tell me if I'm missing something here. The XML Comment
generator in VS2005 seems to be woefully incomplete. I created a test
solution with 2 classes in different namespaces

XTest.Derived.DerivedClass
XTest.Base.BaseClass

and yes, DerivedClass is dreived from BaseClass.

I gave them each 2 constructors, DerivedClass
received a method, a property, and a private field.

below is what I got:

<?xml version="1.0" ?>
- <doc>
- <assembly>
<name>XTest</name>
</assembly>
- <members>
- <member name="T:XTest.Derived.DerivedClass">
<summary>This is my derived class.</summary>
</member>
- <member name="T:XTest.Base.BaseClass">
<summary>comments for the entire class</summary>
</member>
- <member name="M:XTest.Base.BaseClass.#ctor">
<summary>default constructor comments.</summary>
</member>
- <member name="M:XTest.Base.BaseClass.#ctor(System.String)" >
<summary>alternate constructor comments</summary>
<param name="s">first parameter</param>
</member>
- <member name="F:XTest.Derived.DerivedClass.ia">
<summary>my array</summary>
</member>
- <member name="M:XTest.Derived.DerivedClass.#ctor">
<summary>default DC constructor</summary>
</member>
- <member name="M:XTest.Derived.DerivedClass.#ctor(System.St ring)">
<summary>alternate constructor for DC</summary>
<param name="s">same silly string</param>
</member>
- <member name="M:XTest.Derived.DerivedClass.getVal">
<summary>returns the value 19</summary>
<returns>the value 19</returns>
</member>
- <member name="P:XTest.Derived.DerivedClass.Ia">
<summary>accessor and mutator for ia.</summary>
</member>
</members>
</doc>

You'll notice there is no relation in here between the two classes. How
come?
How can anyone generate a sufficiently complete API document if you
can't
show class inheritance? I've combed through the MSDN site and can't
even
find a tag I could add to my documentation to 'help things along' which
I shouldn't
have to do in the first place.

Someone please enlighten me.

Steve
PS - I'll send you the whole solution if you send me an email

Jun 13 '06 #1
3 1425
Don't know if this is going to solve your problem, but I've had some success
generating XML comments using GhostDoc:
http://www.roland-weigelt.de/ghostdoc/

It might help with your problem. I'm far too inexperienced to offer specific
advice, which is why I use tools like this!

Steve
"SteveCriscuoli" <st***************@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I originally posted this in microsoft.public.xml ... my apologies to
those to who read both groups ...
Someone please tell me if I'm missing something here. The XML Comment
generator in VS2005 seems to be woefully incomplete. I created a test
solution with 2 classes in different namespaces

XTest.Derived.DerivedClass
XTest.Base.BaseClass

and yes, DerivedClass is dreived from BaseClass.

I gave them each 2 constructors, DerivedClass
received a method, a property, and a private field.

below is what I got:

<?xml version="1.0" ?>
- <doc>
- <assembly>
<name>XTest</name>
</assembly>
- <members>
- <member name="T:XTest.Derived.DerivedClass">
<summary>This is my derived class.</summary>
</member>
- <member name="T:XTest.Base.BaseClass">
<summary>comments for the entire class</summary>
</member>
- <member name="M:XTest.Base.BaseClass.#ctor">
<summary>default constructor comments.</summary>
</member>
- <member name="M:XTest.Base.BaseClass.#ctor(System.String)" >
<summary>alternate constructor comments</summary>
<param name="s">first parameter</param>
</member>
- <member name="F:XTest.Derived.DerivedClass.ia">
<summary>my array</summary>
</member>
- <member name="M:XTest.Derived.DerivedClass.#ctor">
<summary>default DC constructor</summary>
</member>
- <member name="M:XTest.Derived.DerivedClass.#ctor(System.St ring)">
<summary>alternate constructor for DC</summary>
<param name="s">same silly string</param>
</member>
- <member name="M:XTest.Derived.DerivedClass.getVal">
<summary>returns the value 19</summary>
<returns>the value 19</returns>
</member>
- <member name="P:XTest.Derived.DerivedClass.Ia">
<summary>accessor and mutator for ia.</summary>
</member>
</members>
</doc>

You'll notice there is no relation in here between the two classes. How
come?
How can anyone generate a sufficiently complete API document if you
can't
show class inheritance? I've combed through the MSDN site and can't
even
find a tag I could add to my documentation to 'help things along' which
I shouldn't
have to do in the first place.

Someone please enlighten me.

Steve
PS - I'll send you the whole solution if you send me an email

Jun 13 '06 #2
"SteveCriscuoli" <st***************@gmail.com> wrote:
Someone please tell me if I'm missing something here. The XML Comment
generator in VS2005 seems to be woefully incomplete. I created a test
solution with 2 classes in different namespaces

XTest.Derived.DerivedClass
XTest.Base.BaseClass

and yes, DerivedClass is dreived from BaseClass. [...] You'll notice there is no relation in here between the two classes. How
come?
How can anyone generate a sufficiently complete API document if you
can't show class inheritance? I've combed through the MSDN site and can't
even find a tag I could add to my documentation to 'help things along' which
I shouldn't have to do in the first place.

Someone please enlighten me.


The bit you're missing is System.Reflection. Existing tools like NDoc
require the assemblies as well as the XML, for this reason, AFAIK.
Basically, you can't do everything with just a transform.

-- Barry

--
http://barrkel.blogspot.com/
Jun 13 '06 #3
Yeah, That's what I was thinking. I also program in Java and really
love javadoc but I guess that's what it's doing as well. I just wish VS
had gone 'the extra mile' and finished the job.
Barry Kelly wrote:
"SteveCriscuoli" <st***************@gmail.com> wrote:
Someone please tell me if I'm missing something here. The XML Comment
generator in VS2005 seems to be woefully incomplete. I created a test
solution with 2 classes in different namespaces

XTest.Derived.DerivedClass
XTest.Base.BaseClass

and yes, DerivedClass is dreived from BaseClass.

[...]
You'll notice there is no relation in here between the two classes. How
come?
How can anyone generate a sufficiently complete API document if you
can't show class inheritance? I've combed through the MSDN site and can't
even find a tag I could add to my documentation to 'help things along' which
I shouldn't have to do in the first place.

Someone please enlighten me.


The bit you're missing is System.Reflection. Existing tools like NDoc
require the assemblies as well as the XML, for this reason, AFAIK.
Basically, you can't do everything with just a transform.

-- Barry

--
http://barrkel.blogspot.com/


Jun 14 '06 #4

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

Similar topics

5
by: Gerhard Menzl | last post by:
When creating a Managed C++ DLL using the Visual Studio 7.1 Solution Explorer (by selecting Add New Project and then either choosing Class Library (.NET) or Windows Control Library (.NET)), the IDE...
5
by: rawCoder | last post by:
Hi All, In Visual Basic .NET , your function definition might requirre you to return a value but (accidently/intentionally) you dont put any 'return value' in the function. In this case VB...
2
by: JohnMSyrasoft | last post by:
Hi, wondering if I'm missing something before I log a minor bug to the VS2005 feedback page. In VB6, you could span multiple lines with comments by using a line continuation character as in ...
2
by: DJohnson | last post by:
Hello everyone, Please forgive me for my ignorance or lack of understanding on the following technology, as I am by no means an expert in serial IO. I am writing an application that communicates...
10
by: Ant | last post by:
Hi, I am having trouble with a member function pointer. It sees to give me the followign error Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. ...
5
by: chris_doran | last post by:
/COMMENT has been removed from the linker that comes with VS2005, and use in source code of: #pragma comment(exestr, "this is a string") gives the message: warning LNK4224: /COMMENT is no...
1
by: Simon D | last post by:
I've managed to create a desktop app (in vs2005) using .net that accesses a web service. However porting to the compact framework is a failure, because the response(s) to the proxy class calls...
12
by: Andrew Wan | last post by:
How different is it to program C# for Visual Studio 2003.NET & Visual Studio 2005? I know Visual Studio 2003.NET uses .NET 1.1, whilst VS2005 uses .NET 2.0. So the question really is, what is the...
5
by: Josh | last post by:
Hi, I'm trying to use the standard TreeView in VS2005 ( under the navigation menu ). But I cant get any events to postback and none of the style settings are being applied. None of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.