tags:

views:

237

answers:

2

When you start a WebService project in VisualStudio(VS) you do actually see some HTML documentation, but the C# comment help does not make it across to the HTML. You can get a description to come through for each web method by using the Description property of the WebMethod attribute, however this means duplicating text from the comment help and also doesn't allow for documenting web method arguments as far as I can tell.

Is there an easy way of picking up the comment help already present in C# code?

Thankyou.

+1  A: 

The C# comments don't get compiled into the assembly. There's a solution over at Codeproject for providing alternate WSDL documentation: it shouldn't be too difficult to set up an ASP.NET application to read the raw xml documentation file, with some configuration to match WSDL services and operations to classes and methods.

I don't know if there are any off-the-shelf solutions for your problem, though.

Pontus Gagge
A: 

I too am interested in this. I have a WSDL with comments and want to read that in using asp.net and dynamically generate an MSDN style reference for the web service.

Surely there is a library out there that does this already?

Hades
Don't write comments as answers please.
SiN