DotNetDocs 1.1.0-preview.8

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

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 30 11/17/2025
1.1.0-preview.15 28 11/17/2025
1.1.0-preview.14 205 11/12/2025
1.1.0-preview.13 204 11/11/2025
1.1.0-preview.12 137 11/9/2025
1.1.0-preview.11 144 11/9/2025
1.1.0-preview.10 126 11/7/2025
1.1.0-preview.9 131 11/6/2025
1.1.0-preview.8 129 11/6/2025
1.1.0-preview.7 132 11/6/2025
1.1.0-preview.6 129 11/6/2025
1.1.0-preview.5 126 11/6/2025
1.1.0-preview.4 130 11/5/2025
1.1.0-preview.3 126 11/5/2025
1.1.0-preview.2 125 11/5/2025
1.1.0-preview.1 102 11/2/2025
1.0.3-preview.1 115 10/23/2025
1.0.2 172 10/23/2025
1.0.1 157 10/20/2025
1.0.1-preview.1 116 10/20/2025
1.0.0 86 10/18/2025
1.0.0-preview.32 36 10/18/2025
1.0.0-preview.31 118 10/16/2025
1.0.0-preview.30 116 10/15/2025
1.0.0-preview.29 123 10/13/2025
1.0.0-preview.28 123 10/13/2025
1.0.0-preview.27 110 10/12/2025
1.0.0-preview.26 96 10/10/2025
1.0.0-preview.25 96 10/10/2025
1.0.0-preview.24 118 10/5/2025
1.0.0-preview.23 102 10/3/2025
1.0.0-preview.22 103 10/3/2025
1.0.0-preview.21 100 9/28/2025
1.0.0-preview.20 130 9/24/2025
1.0.0-preview.19 254 9/16/2025
1.0.0-preview.18 252 9/16/2025
1.0.0-preview.17 243 9/15/2025
1.0.0-preview.16 205 9/15/2025
1.0.0-preview.15 172 9/14/2025
1.0.0-preview.14 103 9/14/2025
1.0.0-preview.13 101 9/13/2025
1.0.0-preview.12 99 9/13/2025
1.0.0-preview.11 53 9/13/2025
1.0.0-preview.10 84 9/5/2025
1.0.0-preview.9 132 9/5/2025
1.0.0-preview.8 134 9/3/2025
1.0.0-preview.7 125 9/1/2025
1.0.0-preview.6 129 9/1/2025
1.0.0-preview.5 142 8/30/2025
1.0.0-preview.4 169 8/29/2025
1.0.0-preview.3 173 8/29/2025
1.0.0-preview.2 173 8/28/2025
1.0.0-preview.1 173 8/27/2025