473,503 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Documentation in ASP.NET web sites

Since I never seen the following question answered, I am re-posting it:

Hi

Im using ASP.NET 2 with C# in codebehind files and Visual Studio 2005 Team
Edition.

I have embedded lots of XML Documentation (<summary>,<see>,etc) into my
ASP.NET project in code behind files of ASP pages, user controls and classes
in the App_Code directory. I have added the "/doc" compiler option using the
web.config (see snippet at bottom of post).

When i build my website it seems to only generate the XML documentation for
one file only.
Is there a way to generate all documentation for the web project?

Also if i give the full path to the /doc option i can find the output but if
i just give a file name i dont know where it creates the file.

Has anyone ever had any success with XML documentation of web projects? Let
me
know if there is a work around that im missing on the web.

Thanks
Ben Crinion

<system.codedom>
<compilers>
<compiler
language="c#;cs;csharp"
extension=".cs"
type="Microsoft.CSharp.CSharpCodeProvider"
compilerOptions="/doc:c:\XMLDOCS.xml"
warningLevel="1" />
</compilers>
</system.codedom

--
http://www.zbitinc.com
Mar 23 '06 #1
10 3767
Hi Ben,

Thanks for posting!

For the current issue, my understanding is that you want to generate the
XML document for the current ASP.NET application. If I have misunderstood
anything, please feel free to let me know.

Based on my experience, if you want to generate all document for the
current web application, I recommend you use the NDoc tool at the current
stage. Adding the compile option is not appropriated for the large and
formal web project. You can obtain more information about the NDoc tool via
accessing the following link:
http://www.sitepoint.com/print/dot-n...mentation-ndoc

Hope this will be helpful!

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 24 '06 #2
Dear Yuan Ren,

Thank you for your reply.
However, you missed a small but very crucial detail in my post. I am asking
about ASP.NET 2.0 (not version 1.x). I have been using NDoc in the previous
version of .NET and was very happy with that. Now, with the release of 2.0
and Visual Studio 2005, however, there are two major problems with
documenting Web Projects (Web Sites).
One, of course, is that NDoc does NOT support version 2.0 of .NET and your
input will be greatly appreciated if you could supply a Microsoft’s internal
tool for this. But even before we get to the actual Documentation production
process, we need to be able to materialize the .XML document out of our web
project, and that is not very easy or I don’t know how to do it in the new
environment.
I am looking forward to find out if there are solutions/workarounds to
resolve both of those issues.

--
http://www.zbitinc.com
""Yuan Ren[MSFT]"" wrote:
Hi Ben,

Thanks for posting!

For the current issue, my understanding is that you want to generate the
XML document for the current ASP.NET application. If I have misunderstood
anything, please feel free to let me know.

Based on my experience, if you want to generate all document for the
current web application, I recommend you use the NDoc tool at the current
stage. Adding the compile option is not appropriated for the large and
formal web project. You can obtain more information about the NDoc tool via
accessing the following link:
http://www.sitepoint.com/print/dot-n...mentation-ndoc

Hope this will be helpful!

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 24 '06 #3
Hi Ben,

Thanks for your reply!

At the current stage, as far as I know, the NDoc tool has supported the
NET 2.0. You can obtain more details via accessing the following link:
http://community.rainbowportal.net/b...g/archive/2006
/03/21/1685.aspx

Actually, most developers use the NDoc tool to generate the documentation
for their .NET application. The article from MSDN and other third party
site also demonstrate how to use the NDoc tool to approach this:
"Generating Documentation for Your Visual Basic .NET Applications":
http://msdn.microsoft.com/library/de...us/dv_vstechar
t/html/vbgeneratingdocs.asp

"Code Documentation in .NET":
http://aspalliance.com/696

I understand the scenario is different from the current issue. However, as
you mentioned, the ASP.NET only generate the single xml file after
compilation. If you want to materialize the XML document file, the NDoc
tool is much appropriated for the current issue. You can also find other
tools to finish the current job such as the DocumentX, HelpStudio and so
on. However, some of these are not free.

Hope this will be helpful!

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 27 '06 #4
Dear Yuan Ren,

With all the respect, I didn't hear what I needed to hear from you. It seems
that you are answering some other question. Sorry for being so direct, but I
KNOW how to use NDOC - I have used it for many month and loved how it worked
for VS2003 (including the web projects in it). What I am asking you though is
HOW to use it for web projects (in my case web site contaning web services)
in Visual Studio 2005. In particular, I need to know how to produce the .XML
file, that I was able to produce in VS 2003 by simply adding appropriate
compiler option to the project, and I am not able to produce now.
You are telling me to use NDOC, but it requires that .XML file as an INPUT.
And although it could produce the XML as an output too, I still have to
provide the XML input for it because at very least it requires an assembly
(which I don't have either) and the XML with my comments.
--
http://www.zbitinc.com
""Yuan Ren[MSFT]"" wrote:
Hi Ben,

Thanks for your reply!

At the current stage, as far as I know, the NDoc tool has supported the
.NET 2.0. You can obtain more details via accessing the following link:
http://community.rainbowportal.net/b...g/archive/2006
/03/21/1685.aspx

Actually, most developers use the NDoc tool to generate the documentation
for their .NET application. The article from MSDN and other third party
site also demonstrate how to use the NDoc tool to approach this:
"Generating Documentation for Your Visual Basic .NET Applications":
http://msdn.microsoft.com/library/de...us/dv_vstechar
t/html/vbgeneratingdocs.asp

"Code Documentation in .NET":
http://aspalliance.com/696

I understand the scenario is different from the current issue. However, as
you mentioned, the ASP.NET only generate the single xml file after
compilation. If you want to materialize the XML document file, the NDoc
tool is much appropriated for the current issue. You can also find other
tools to finish the current job such as the DocumentX, HelpStudio and so
on. However, some of these are not free.

Hope this will be helpful!

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 28 '06 #5
Hi Ben,

Thanks for your reply!

Sorry for misunderstanding!

I think I have known your concern is that generating XML document in
ASP.NET v2.0. I performed the testing and find the issue same with you.
I'll contact our dev team ASAP for the current issue. Thanks for your
patience!

Regards,

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 29 '06 #6
Ok Thanks.
Please keep me posted.

--
http://www.zbitinc.com
""Yuan Ren[MSFT]"" wrote:
Hi Ben,

Thanks for your reply!

Sorry for misunderstanding!

I think I have known your concern is that generating XML document in
ASP.NET v2.0. I performed the testing and find the issue same with you.
I'll contact our dev team ASAP for the current issue. Thanks for your
patience!

Regards,

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 29 '06 #7
Hi Ben,

Thanks for your patience!

One of our engineers also recommends using the NDoc tool. However, I know
your concern is generating XML document but not generating formal or
end-user documentation. Could you please tell me whether my understanding
is correct?

However, I still report the issue to our dev team again. I'll rely you ASAP
when I get some results or workarounds. Thanks for your waiting!

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 30 '06 #8
Hi Ben,

Thanks for your patience!

There are two ways to approach the current issue:

1) Place the class files you want to get XML documents generated for in a
"Class Library" project and then reference that project from you website.

2) The second option, which might be a better option if you want to
generate XML documentation for code-behind files for pages, in addition to
classes, is to use the Web Application Project instead of a Website
project. Web Application projects is available from
http://www.asp.net/default.aspx?tabindex=5&tabid=41. The current build
that is available is still a preview; however we are releasing an RC
version of the Web Application projects in the coming week.

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 4 '06 #9
Exellent response...I've been hunting for the same solution. Thank you
Yuan

Apr 14 '06 #10
Thanks for this post.

However, I was wondering if there is something analogous to the "Web
Application Project" VS add-in for Web-services.

By analogous I mean:

1. All the source files in a Web-services project is compiled into a
single assembly, perhaps with the exceptions of the .asmx file

2. Property pages for the project in VS display all the tabs that are
available in other kinds of projects - i.e., for example, ability to
specify pre and post build events, the XML documentation file etc.

I really appreciate any help.

Cheers,
Adrigo

Apr 18 '06 #11

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

Similar topics

2
11210
by: JackFrost | last post by:
Hi all, I recently read an article on the Windows Scripting Host Object Model (WSHOM) in a back issue of Visual Studios Journal from 2000. As it gives me a useful and easy way to access all of...
2
1811
by: Simon John | last post by:
I'm sure this must be a PEP, but could someone look at the PyXML documentation? I'm trying to evaluate XML on Python (to eventually use it with XML-RPC) as apposed to Perl. The problem is, I...
2
1332
by: Daniel Bickett | last post by:
I was reading the "Pickling and inheritance are making me hurt" thread, and the latest suggestion (as of this posting) was to do with the __setstate__ and __getstate__ methods. They caught my...
5
3443
by: Charles Crume | last post by:
Hello all; I've been able to locate, and download, the source for "animate.js" from a number of web sites, but have not been able to find *any* documentation on this script. Does anyone have...
40
2756
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my...
0
872
by: bill | last post by:
I'm using VS2005 VB.net. I want to use the automatic XML documentation feature which creates documentation for comments with the triple comment symbol (''') marker. It works fine except in web...
9
1786
by: Mythran | last post by:
Can someone please point me to some articles explaining how to convert the code comment xml files into MSDN documentation? I've made some modifications to Enterprise Library and would like to...
6
5447
by: Ahmad Humayun | last post by:
Hi there, I need to create an atomic section in Python code i.e. there is no context switch to any other thread during the running of that piece of code. Would would do the trick? thanks,
0
7087
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...
0
7281
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,...
1
5014
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...
0
4675
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...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.