Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
Hello,
I've been using /// comments in C#, and when I build it into an XML file, I cannot convert it into a webpage. Can somebody help me?
Posted
Updated 29-May-11 5:59am
v2
Comments
thatraja 29-May-11 11:47am    
Include your code in your question.
Sergey Alexandrovich Kryukov 29-May-11 14:11pm    
OP probably got no idea how to make such code. I provide general direction.
Please see my answer.
--SA
RaviRanjanKr 29-May-11 12:19pm    
Please be more clear while asking question we need more information about your question :)
Sergey Alexandrovich Kryukov 29-May-11 14:11pm    
OP probably got no idea how to make such code. I provide general direction.
Please see my answer.
--SA
Monjurul Habib 29-May-11 12:33pm    
please clarify your question with sample code.

Hello,

There are a few products that will convert the generated visual studio XML comments file into something more human friendly.

My favourite is "Sandcastle Help File Builder"
http://shfb.codeplex.com/[^]

This is the getting started page:
http://www.ewoodruff.us/shfbdocs/Index.aspx?topic=html/b772e00e-1705-4062-adb6-774826ce6700.htm[^]

Sandcastle projects are compiled by MSBuild so you can integrate them in your solution very easily. You can configure the output to be an MSDN style CHM file or if you prefer a HTML page or even a PDF...

It's a really cool product. And it's free!

Valery.
PS: Have you looked at GhostDoc for your XML comments?
http://submain.com/products/ghostdoc.aspx[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-May-11 18:46pm    
Sounds good, my 5, but my method has the benefit of doing it even on the fly and full flexibility.
Please see my answer.
--SA
Valery Possoz 30-May-11 4:44am    
Thanks. Your solution is nice and simple, I've never done it this way. I'll give it a go ;)
Valery.
If you haven't done so, I would advise to apply XSLT transformation from Visual Studio generated XML documents to HTML code.

This is should be simple enough as there is one-to-one correspondence between items of Visual Studio XML document format and output HTML. XML tags like typeparam, param, return, seealso, etc. should appear on output as HTML anchor tags. Your HTML page should behave like browsing commented reflected code under Visual Studio, when you click on the reference in the Solution Explorer, open the reference and browse it.

—SA
 
Share this answer
 
Comments
Monjurul Habib 29-May-11 18:12pm    
i am not sure OP is looking for this or not. anyway my 5 for the great advise.
Sergey Alexandrovich Kryukov 29-May-11 18:44pm    
Thank you, Monjurul.
Whatever OP means by "convert to Web page", this method would work anyway.
--SA
thatraja 29-May-11 21:11pm    
Agree, My 5.Some OPs never came with their code. :(
Sergey Alexandrovich Kryukov 29-May-11 22:16pm    
Thank you, Raja.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900