Skip to main content
1

Install

Install the DotNetDocs CLI

Add DotNetDocs to your Solution

Navigate to your solution folder and create a new documentation project:
By default, this creates a Mintlify documentation project using the latest stable SDK version from NuGet. To use a different documentation type or prerelease SDK:
The CLI automatically queries NuGet.org for the latest SDK version. See more options in the CLI Reference docs.
This automatically:
  • locates the solution
  • creates a new {SolutionName}.Docs\{SolutionName}.Docs.docsproj file that centralizes your documentation
  • adds the new project to your solution
The new project is pre-configured with sensible defaults:
You can see more of how to configure your .docsproj file in the .docsproj Reference docs.
Now your documentation lives right next to your code - no more context switching! Edit your doc files in Visual Studio with full IntelliSense support.
Your documentation project is now part of your solution and will stay in sync with your codebase.
2

Integrate

Adjust your .docsproj settings

Change the documentation type, shut off API Reference generation, turn off conceptual docs, and adjust any other settings as necessary.

Enable XML Documentation Comment compilation

Add this to the projects where you want to extract the XML Documentation comments from your code:

Exclude unnecessary projects

Test projects are excluded by default. If there are other projects you’d like to exclude, update your .docsproj with the following property:

Generate API Documentation

Run the documentation generator:
DotNetDocs will:
  • Parse your assembly XML documentation
  • Extract all public types, methods, properties, and events
  • Combine it with any conceptual docs you’ve written
  • Render files in the format of your choice in the folder you specified
Your API documentation now stays in sync with every build - no more stale docs!
3

Deploy

Local Development with Mintlify

Preview your docs locally with Mintlify’s dev server:
Open http://localhost:3000 to see your docs with hot-reload.

Deploy to Mintlify

Connect your GitHub repository to Mintlify for automatic deployments:
  1. Push your docs to GitHub
  2. Go to mintlify.com and connect your repo
  3. Mintlify automatically deploys on every push to main

Deploy to GitHub Pages

Add a GitHub Actions workflow (.github/workflows/docs.yml):

CI/CD Integration

DotNetDocs integrates with your existing build pipeline:
Your documentation is now deployed and accessible to your users!