Ask HN: C# DocGen like Javadoc?
There's an internal team at my job that's trying to get people to use a framework they built. The problem is there's no documentation; this despite the code being well commented in what appears to be a structured fashion. An example looks like this:
/// <summary>
/// Waits for the Page's DOM to fully.....
/// </summary>
/// <param name="classInstance">The PageObject instance to be populated.</param>
does anyone recognize this format and, even better, a tool used to turn this into usable HTML documentation?
9 comments
[ 3.1 ms ] story [ 30.9 ms ] threadhttp://www.stack.nl/~dimitri/doxygen/manual/xmlcmds.html
I believe this is used to generate some of the official Microsoft documentation.
We use it on our team -- it's pretty basic, but allows Markdown formatted content and ingests the triple slash comments.
The biggest downside is that it is extremely slow.
There are a number of XSLT stylesheets and more complicated tools around, many from relatively ancient times in the .NET world, to generate prettier documentation from those comments. NDoc [2] is ancient but still presumably works. I last used SandCastle, whose website proclaims it shutdown and forwards to fork SHFB [3], and some of whose guts inspired DocFX [4].
As another comment points out it appears that DocFX is the latest toolset Microsoft themselves are using (it's one of a couple of build tools for the new mostly all open source docs.microsoft.com site).
[1] https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...
[2] http://ndoc.sourceforge.net/
[3] http://github.com/EWSoftware/SHFB
[4] https://dotnet.github.io/docfx/
Right click the project, "Properties", "Build", enable "XML documentation file". When creating the NuGet package make sure the xml is in the same folder as the dll.