Xml2Doc.Cli 1.3.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global Xml2Doc.Cli --version 1.3.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Xml2Doc.Cli --version 1.3.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Xml2Doc.Cli&version=1.3.1
                    
nuke :add-package Xml2Doc.Cli --version 1.3.1
                    

Xml2Doc.Cli

Command-line interface for Xml2Doc, part of the mod-posh organization.

Overview

Xml2Doc.exe converts C# XML documentation into Markdown using the Xml2Doc.Core engine. It’s perfect for developers or CI systems that want quick, repeatable Markdown docs from XML output without writing code.

Usage

# Per-type documentation
Xml2Doc.exe --xml .\bin\Release\net9.0\MyLib.xml --out .\docs

# Single combined file
Xml2Doc.exe --xml .\bin\Release\net9.0\MyLib.xml --out .\docs\api.md --single --file-names clean

Options

Option Description
--xml <path> Path to the XML documentation file
--out <path> Output directory (multi-file) or output file (single-file)
--single Combine all documentation into a single Markdown file
--file-names <verbatim\|clean> Filename mode — preserve generics or shorten to readable form
--rootns <namespace> Optional root namespace to trim
--lang <language> Code block language (default: csharp)
--config <file> Path to a JSON configuration file
--help Display help text

Example Config File

You can use a JSON file to define all options and simplify command-line usage:

xml2doc.json

{
  "Xml": "src/MyLib/bin/Release/net9.0/MyLib.xml",
  "Out": "docs/api.md",
  "Single": true,
  "FileNames": "clean",
  "RootNamespace": "MyCompany.MyProduct",
  "CodeLanguage": "csharp"
}

Run it with:

Xml2Doc.exe --config xml2doc.json

CLI flags always override values from the config file.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.4.0-preview.99-gfc4d072 70 4/3/2026
1.4.0-preview.98-g5ab3c0c 74 3/15/2026
1.4.0-preview.97-g6b55cdc 57 3/15/2026
1.4.0-preview.96-gd4b8414 58 3/15/2026
1.4.0-preview.95-g36489cc 56 3/15/2026
1.4.0-preview.94-g95a0d96 59 3/15/2026
1.4.0-preview.93-g8d985ca 60 3/15/2026
1.4.0-preview.92-g16d5460 57 3/15/2026
1.4.0-preview.91-gdc7994e 59 3/14/2026
1.4.0-preview.90-g773c9bc 61 3/14/2026
1.4.0-preview.89-g412955a 61 3/14/2026
1.4.0-preview.88-gd4339e3 65 3/14/2026
1.4.0-preview.87-g762e834 62 3/14/2026
1.4.0-preview.86-g10fb1f6 257 12/17/2025
1.4.0-preview.85-g20398c2 241 12/17/2025
1.4.0-preview.84-g14ae0ae 241 12/17/2025
1.4.0-preview.83-g7ca4dad 238 12/17/2025
1.4.0-preview.82-gccf3c5b 242 12/17/2025
1.4.0-preview.81-ga03f733 243 12/17/2025
1.3.1 216 10/26/2025
Loading failed