DotNetDocs 1.0.2

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global DotNetDocs --version 1.0.2
                    
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 DotNetDocs --version 1.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotNetDocs&version=1.0.2
                    
nuke :add-package DotNetDocs --version 1.0.2
                    

DotNetDocs CLI

NuGet Downloads License

<a href="https://dotnetdocs.com"> <img src="https://raw.githubusercontent.com/CloudNimble/DotNetDocs/refs/heads/dev/src/CloudNimble.DotNetDocs.Docs/images/logos/dotnetdocs.light.svg" alt="DotNetDocs Logo" width="450" /> </a>

The command-line tool that helps you manage your .NET Documentation Projects (.docsproj) and generate beautiful documentation from your XML Doc Comments.

Installation

Install as a global tool:

dotnet tool install --global DotNetDocs

Or update an existing installation:

dotnet tool update --global DotNetDocs

Commands

dotnet docs add

Create and add a documentation project (.docsproj) to your solution.

Usage:

dotnet docs add [options]

Options:

  • --solution|-s <PATH> - Path to solution file (.sln or .slnx). If not specified, searches current directory
  • --name <NAME> - Name for the docs project. Defaults to {SolutionName}.Docs
  • --output|-o <PATH> - Output directory for the docs project. Defaults to project folder

Examples:

# Create docs project in current directory's solution
dotnet docs add

# Specify solution file
dotnet docs add --solution ../MyApp.sln

# Custom project name
dotnet docs add --name MyCustomDocs

# Custom output directory
dotnet docs add --output ./documentation

What it does:

  1. Creates a new .docsproj file with Mintlify configuration
  2. Adds the project to your solution in a "Docs" solution folder
  3. Configures default Mintlify theme and settings

dotnet docs build

Build documentation from .NET assemblies.

Usage:

dotnet docs build [options]

Options:

  • --assembly-list|-a <PATH> - (Required) Path to file containing list of assemblies to document (one per line)
  • --output|-o <PATH> - (Required) Output path for generated documentation
  • --type|-t <TYPE> - Documentation type: Default, Mintlify, Json, or Yaml. Default is Default (Markdown)
  • --namespace-mode|-n <MODE> - Namespace organization: File or Folder. Default is File
  • --api-reference-path <PATH> - API reference subfolder path. Default is api-reference

Examples:

# Basic build with assembly list
dotnet docs build --assembly-list assemblies.txt --output ./docs

# Build Mintlify documentation
dotnet docs build -a assemblies.txt -o ./docs --type Mintlify

# Use folder mode for namespaces
dotnet docs build -a assemblies.txt -o ./docs --namespace-mode Folder

# Build JSON format
dotnet docs build -a assemblies.txt -o ./docs --type Json

Assembly List File Format:

Create a text file with one assembly path per line:

bin/Release/net8.0/MyProject.Core.dll
bin/Release/net8.0/MyProject.Extensions.dll
bin/Release/net8.0/MyProject.Utilities.dll

Note: Only assemblies with corresponding XML documentation files (.xml) will be processed.

Documentation Types

  • Default/Markdown: Clean Markdown files with frontmatter
  • Mintlify: MDX files with enhanced frontmatter, icons, and docs.json navigation
  • Json: JSON representation of the documentation model
  • Yaml: YAML representation of the documentation model

Namespace Modes

  • File Mode: Each namespace gets a single file (e.g., MyNamespace.SubNamespace.md)
  • Folder Mode: Each namespace becomes a folder with separate files per type (e.g., MyNamespace/SubNamespace/MyClass.md)

Workflow Example

# 1. Add a docs project to your solution
dotnet docs add

# 2. Build your projects to generate assemblies and XML docs
dotnet build --configuration Release

# 3. Create an assembly list file
echo "bin/Release/net8.0/MyProject.dll" > assemblies.txt

# 4. Generate documentation
dotnet docs build -a assemblies.txt -o ./docs --type Mintlify

# 5. Preview with Mintlify CLI
npm i mint -g
cd docs
mint dev

See Also

Requirements

  • .NET 8.0+, .NET 9.0+, or .NET 10.0+

License

MIT License - see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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 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.1.0-preview.10 95 11/7/2025
1.1.0-preview.9 103 11/6/2025
1.1.0-preview.8 103 11/6/2025
1.1.0-preview.7 105 11/6/2025
1.1.0-preview.6 104 11/6/2025
1.1.0-preview.5 101 11/6/2025
1.1.0-preview.4 106 11/5/2025
1.1.0-preview.3 103 11/5/2025
1.1.0-preview.2 104 11/5/2025
1.1.0-preview.1 96 11/2/2025
1.0.3-preview.1 112 10/23/2025
1.0.2 167 10/23/2025
1.0.1 155 10/20/2025
1.0.1-preview.1 114 10/20/2025
1.0.0 84 10/18/2025
1.0.0-preview.32 34 10/18/2025
1.0.0-preview.31 114 10/16/2025
1.0.0-preview.30 114 10/15/2025
1.0.0-preview.29 119 10/13/2025
1.0.0-preview.28 119 10/13/2025
1.0.0-preview.27 108 10/12/2025
1.0.0-preview.26 94 10/10/2025
1.0.0-preview.25 94 10/10/2025
1.0.0-preview.24 115 10/5/2025
1.0.0-preview.23 100 10/3/2025
1.0.0-preview.22 101 10/3/2025
1.0.0-preview.21 98 9/28/2025
1.0.0-preview.20 128 9/24/2025
1.0.0-preview.19 252 9/16/2025
1.0.0-preview.18 250 9/16/2025
1.0.0-preview.17 241 9/15/2025
1.0.0-preview.16 203 9/15/2025
1.0.0-preview.15 169 9/14/2025
1.0.0-preview.14 101 9/14/2025
1.0.0-preview.13 99 9/13/2025
1.0.0-preview.12 95 9/13/2025
1.0.0-preview.11 51 9/13/2025
1.0.0-preview.10 82 9/5/2025
1.0.0-preview.9 130 9/5/2025
1.0.0-preview.8 132 9/3/2025
1.0.0-preview.7 123 9/1/2025
1.0.0-preview.6 125 9/1/2025
1.0.0-preview.5 140 8/30/2025
1.0.0-preview.4 166 8/29/2025
1.0.0-preview.3 170 8/29/2025
1.0.0-preview.2 171 8/28/2025
1.0.0-preview.1 169 8/27/2025