Nefarius.Tools.XMLDoc2Markdown
1.8.0
Prefix Reserved
dotnet tool install --global Nefarius.Tools.XMLDoc2Markdown --version 1.8.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Nefarius.Tools.XMLDoc2Markdown --version 1.8.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Nefarius.Tools.XMLDoc2Markdown&version=1.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Nefarius.Tools.XMLDoc2Markdown --version 1.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XMLDoc2Markdown
Tool to generate markdown from C# XML documentation.
Based on the work of Charles de Vandière and Fernando Cerqueira ❤
How to use
Install tool
dotnet tool install -g Nefarius.Tools.XMLDoc2Markdown
Generate documentation
xmldoc2md <DLL_SOURCE_PATH> <OUTPUT_DIRECTORY>
Example
xmldoc2md MyLibrary.dll docs
Display command line help
xmldoc2md -h
Usage: xmldoc2md [options] <src> <out>
Arguments:
src DLL source path
out Output directory
Options:
-v|--version Show version information.
-?|-h|--help Show help information.
--index-page-name Name of the index page, (default: "index").
--examples-path Path to the code examples to insert in the
documentation.
--github-pages Remove '.md' extension from links for GitHub
Pages.
--gitlab-wiki Remove '.md' extension and './' prefix from links
for gitlab wikis.
--back-button Add a back button on each page with custom text,
(default: "< Back").
--link-back-button Set link for back button, (default: "./").
--private-members Write documentation for private members.
--onlyinternal-members Write documentation for only internal members.
--excludeinternal Exclude documentation for internal types.
--templatefile Layout template for documentation, (default:
"template.md").
--back-index-button Add a back button in index page, (default: "<
Back").
--link-backindex-button Set link for back button in index page, (default:
"./").
--external-docs Add an external documentation mapping in the
format <namespace>=<url-base> (repeatable).
--external-docs-file Path to a JSON file with namespace → URL-base
mappings for external documentation.
--no-link-generic-arguments Disable individual links for each generic type
argument (legacy rendering).
--front-matter YAML front matter (or @filepath) prepended to
every generated type page. Supports placeholders:
{TypeName}, {Namespace}, {AssemblyName}, {Date}.
--index-front-matter YAML front matter (or @filepath) prepended to the
generated index page. Supports placeholders:
{AssemblyName}, {Date}.
--fail-on-unresolved Exit with a non-zero code if any type reference
could not be resolved.
Tip — dependency resolution: if the tool fails with "Unable to load one or more of the requested types", the assembly's dependencies were not copied to the output directory. Running
dotnet publishinstead ofdotnet buildusually fixes this. As an alternative, add<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>to the target project's.csprojto ensure all transitive DLLs are present alongside the documented assembly.
Template Tokens
{xmldoc2md-Title()} = Title of Document
{xmldoc2md-Back()} = back-button for pages
{xmldoc2md-BackIndex()} = back-button for index page
{xmldoc2md-Body()} = The Documentation
Example Template
# Custom Title :{xmldoc2md-Title()}
{xmldoc2md-Back()}{xmldoc2md-BackIndex()}
- - -
{xmldoc2md-Body()}
- - -
{xmldoc2md-Back()}
Projects using XMLDoc2Markdown
The following open-source projects use this tool to generate their API documentation:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.8.0 | 107 | 7/6/2026 |
| 1.7.0 | 233 | 5/28/2026 |
| 1.7.0-pre002 | 102 | 5/28/2026 |
| 1.6.1 | 1,380 | 11/19/2024 |
| 1.6.0 | 193 | 11/19/2024 |
| 1.6.0-pre001 | 163 | 11/19/2024 |
| 1.5.0 | 290 | 8/16/2024 |
| 1.5.0-pre001 | 213 | 8/16/2024 |
| 1.4.0 | 190 | 7/22/2024 |
| 1.4.0-pre001 | 196 | 7/19/2024 |
| 1.3.0 | 220 | 6/22/2024 |
| 1.2.0 | 215 | 6/22/2024 |
| 1.1.0 | 208 | 6/22/2024 |
| 1.0.4 | 271 | 2/22/2024 |