Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to wikify Visual Studio XML comments?

Is it possible to generate a set of wiki pages from XML comment file generated by Visual Studio?

I'm talking about something like Sandcastle, but for wiki format instead of compiled CHM.

Edit: I'm using MediaWiki which can import/export articles in XML. So I hope that it is possible to write a transformation converting XML comments to MediaWiki XML.

like image 290
Dmitriy Zhukov Avatar asked Jun 30 '09 15:06

Dmitriy Zhukov


People also ask

How do I add comments to XML in Visual Studio?

To insert XML comments for a code element Type /// in C#, or ''' in Visual Basic. From the Edit menu, choose IntelliSense > Insert Comment. From the right-click or context menu on or just above the code element, choose Snippet > Insert Comment.

Should you use XML comments?

XML comments are usefull for generating documentation. If the code is clearly written then you shouldn't need comments to help you understand the code.

What can be used to generate XML documentation for the project?

To generate an XML documentation file from documentation comments in the code, use the /doc option with the csc.exe C# compiler. When you build the project, an XML file will be produced by the compiler with a name corresponding to the project name (e.g. XMLDocumentation. dll -> XMLDocumentation.


1 Answers

I'd recommend a bit different solution:

  • Use Help Server to publish .CHM/.HxS on the web
  • Use special MediaWiki templates to link reference from Wiki like here.
  • Use <see href="..."> to link Wiki pages from XML comments
  • See also: FiXml

This is not exactly what you wanted, but I hope this will be helpful.

like image 69
Alex Yakunin Avatar answered Nov 22 '22 07:11

Alex Yakunin