DotNetDocs 1.4.1
Prefix ReservedSee the version list below for details.
dotnet tool install --global DotNetDocs --version 1.4.1
dotnet new tool-manifest
dotnet tool install --local DotNetDocs --version 1.4.1
#tool dotnet:?package=DotNetDocs&version=1.4.1
nuke :add-package DotNetDocs --version 1.4.1
DotNetDocs CLI
<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:
- Creates a new
.docsprojfile with Mintlify configuration - Adds the project to your solution in a "Docs" solution folder
- 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, orYaml. Default isDefault(Markdown)--namespace-mode|-n <MODE>- Namespace organization:FileorFolder. Default isFile--api-reference-path <PATH>- API reference subfolder path. Default isapi-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.jsonnavigation - 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
- Full Documentation - Complete CLI reference and examples
- DotNetDocs.Sdk - MSBuild SDK for .docsproj projects
- DotNetDocs.Core - Core documentation engine
- DotNetDocs.Mintlify - Enhanced Mintlify.com support
Requirements
- .NET 8.0+, .NET 9.0+, or .NET 10.0+
License
MIT License - see LICENSE for details.
| Product | Versions 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 29 | 3/11/2026 |
| 1.5.0-preview.2 | 27 | 3/11/2026 |
| 1.5.0-preview.1 | 34 | 3/10/2026 |
| 1.4.1 | 85 | 2/28/2026 |
| 1.4.1-preview.2 | 44 | 2/28/2026 |
| 1.4.1-preview.1 | 44 | 2/28/2026 |
| 1.4.0 | 83 | 2/28/2026 |
| 1.3.1-preview.1 | 53 | 2/27/2026 |
| 1.3.0 | 111 | 1/16/2026 |
| 1.3.0-preview.2 | 55 | 1/16/2026 |
| 1.2.1-preview.1 | 53 | 1/12/2026 |
| 1.2.0 | 201 | 12/19/2025 |
| 1.2.0-preview.6 | 164 | 12/19/2025 |
| 1.2.0-preview.5 | 176 | 12/14/2025 |
| 1.2.0-preview.4 | 396 | 12/10/2025 |
| 1.2.0-preview.3 | 321 | 11/30/2025 |
| 1.2.0-preview.2 | 228 | 11/30/2025 |
| 1.2.0-preview.1 | 227 | 11/30/2025 |
| 1.1.0 | 323 | 11/17/2025 |
| 1.1.0-preview.15 | 283 | 11/17/2025 |