XmlDocMarkdown is a command-line tool that generates Markdown from .NET XML documentation comments.
nuget install XmlDocMarkdown -excludeversion will download the latest version of
On Mac or Linux, use Mono to run
NuGet.exe as well as the command-line tool itself.
XmlDocMarkdown command-line tool accepts the path to the input assembly, the path to the output directory, and a number of options.
The XML documentation file should be in the same directory as the input assembly.
The output directory will be created if necessary.
XmlDocMarkdown MyLibrary.dll docs generates Markdown documentation in the
docs directory for the
MyLibrary.dll assembly. The compiler-generated
MyLibrary.xmlfile should be in the same directory as
--source <url>: The URL (absolute or relative) of the folder containing the source code of the assembly, e.g. at GitHub. Required to generate source code links in the See Also sections for types.
--namespace <ns>: The root namespace of the input assembly. Used to generate source code links in the See Also sections for types. If omitted, the tool guesses the root namespace from the exported types.
--visibility (public|protected|internal|private): The minimum visibility for documented types and members. If
public, only public types and members are documented. If
protected, only public and protected types and members are documented. Similarly for
private. Defaults to
--obsolete: Generates documentation for obsolete types and members, which are not documented by default.
--clean: Delete previously generated files that are no longer used.
--verify: Executes the tool without making changes to the file system, but exits with error code 1 if changes would be made. Typically used in build scripts to ensure that any changes have been reflected in the generated code.
--dryrun: Executes the tool without making changes to the file system.
--quiet: Suppresses normal console output.
--newlines (auto|lf|crlf): Indicates the newline used in the output. Defaults to
auto, which uses CRLF or LF, depending on the platform.