Re: Source code documentation
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 5 Mar 2006 10:45:36 -0500
I can see your point. I don't know why they left it out. I do know that when
I created by XSLT, doing Generics was a bit tricky. Perhaps they didn't have
the time, and it will be available in the future as a downloadable add-on.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
"rmacias" <rmacias@xxxxxxxxxxxxxxxx> wrote in message
news:3559CD46-F6EC-405B-B93B-1EC038E3AD2F@xxxxxxxxxxxxxxxx
I don't think you understood what I said. That is not what I found
disappointing.
In VS 2003, you could use the inline XML Comments to document your code in
the source code files. The compiler would read these XML comments and
generate an XML document with this information. Now VS 2003 had a built
in
tool to read this XML Document, and generate an MSDN like web page that
has
your code documented.
The idea was, "We have a tool to interpret the XML document and display it
in a web page to document your code. If it does not suit your needs, then
use NDoc or write your own tool (XSLT, etc) to suit your needs."
Now, in VS 2005, the compiler still generates the XML Document and that's
it. Now the idea is "Here's the XML document, now write your own tool to
do
as you wish. We will no longer give you a tool do generate a page for
you.
You have to do it yourself." And now as an other user stated, NDoc does
not
fully support .NET 2.0 XML code genreated comments (I'll have to look into
this to see if this is true).
What I found disappointint is that they took a tool away that reads the
XML
Comment document for you. Most of the time, it suited my needs
"Kevin Spencer" wrote:
Are you saying the option in VS2003 Tools->Build Comment Web Pages has
been
taken out is VS2005? Wow, I did not know that.....pretty
disappointing.
It's not really disappointing if you think about it. If you create HTML
Code
Comments, you have created an HTML document. Modifying it to suit your
own
model of how it should look is a pain in the butt. HTML is simply *not*
extensible.
But if you create XML Code Comments, you can create *any* type of
document
from the XML, simply by creating an XSL Transform for it. You can
transform
it in any way you like, and change the format with a simple change to the
XSLT that you use to format it. That is what I did in the page I
mentioned
earlier in the thread. I created my own XSLT and use it for all of our
in-house code documentation.
This is part of the "new direction" that Microsoft has been taking, and I
welcome it!
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
"rmacias" <rmacias@xxxxxxxxxxxxxxxx> wrote in message
news:3568CEFD-E30A-4272-90E0-9F94C9C00F58@xxxxxxxxxxxxxxxx
Are you saying the option in VS2003 Tools->Build Comment Web Pages has
been
taken out is VS2005? Wow, I did not know that.....pretty
disappointing.
"Michael Nemtsev" wrote:
Hello Christoph,
Kevin means that you can get XML documentation, not the chm compiled
as
NDoc
did.
To turn this on go to the project properties->Build panel-> check "XML
Documentation
file"
to be shure that every method/class has been documented check "treat
warnings
as error" on ALL
CN> On Sat, 4 Mar 2006 10:25:52 -0500, "Kevin Spencer"
CN> <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
CN>
CN> There is!? Where? I was firmly convinced that this 2003 featureThere is built-in XML Documentation Comment support in Visual
Studio.Net 2005.
was
CN> taken out of 2005 -- can you tell me the exact menu location?
CN>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do
not
cease to be insipid." (c) Friedrich Nietzsche
.
- References:
- Source code documentation
- From: GTi
- Re: Source code documentation
- From: Kevin Spencer
- Re: Source code documentation
- From: Christoph Nahr
- Re: Source code documentation
- From: Michael Nemtsev
- Re: Source code documentation
- From: Kevin Spencer
- Re: Source code documentation
- From: rmacias
- Source code documentation
- Prev by Date: Re: How to get CPU Speed/System Ram in VC++ Project
- Next by Date: Re: Image Comparison
- Previous by thread: Re: Source code documentation
- Next by thread: Re: Source code documentation
- Index(es):
Relevant Pages
|