DocFX
$ docfx Official Low RiskDocFX (docfx) is Microsoft's .NET documentation generator combining Roslyn-extracted C#/VB/F# API metadata (docfx metadata) with conceptual Markdown articles into a static website (docfx build). It supports --warningsAsErrors, --noRestore, --disableGitFeatures, and structured JSON log files via -l log.json.
brew install docfx Extracting Roslyn .NET API metadata and compiling docfx.json sites runs locally against the .NET SDK without MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Headless metadata and build subcommands with --noRestore, --warningsAsErrors, and -l <file>.json JSON logging, though stdout itself is plain text.
-l <file>writes structured JSON log entries--noRestoreand--warningsAsErrorssupport offline strict CI checks
Writes static HTML/YAML outputs locally, though docfx metadata loads .csproj MSBuild evaluation and can trigger dotnet restore unless --noRestore is set.
- MSBuild project evaluation;
--noRestoreprevents implicit NuGet fetches
Installable via brew install docfx, dotnet tool update -g docfx, and GitHub releases; API metadata requires matching .NET SDK.
- Cross-platform .NET tool; requires .NET SDK for
metadata
Premier API + conceptual Markdown doc compiler for the .NET ecosystem with built-in PDF and cross-reference support.
- Roslyn C#/VB/F# API reflection + Markdown static site builder
Official Microsoft .NET Foundation project (dotnet/docfx) actively maintained under MIT.
- Official
dotnet/docfxGitHub repository
Clear CLI reference at dotnet.github.io/docfx/docs/cli.html.
- Official docs at dotnet.github.io/docfx/docs/cli.html
Security, Auth & Guardrails
None required; uses local .NET SDK / NuGet restore caches when extracting API metadata.
100% free and open-source (MIT).
# DocFX Agent Rules - Do not pass `--serve` in synchronous tool runs; use `docfx build` to verify builds cleanly. - Pass `--noRestore` on `docfx metadata` when dependencies are already restored to avoid network NuGet calls. - Use `-l <file>.json` and `--warningsAsErrors` to capture structured build diagnostics.
Agent-Ready Command Recipes
Safe Read-Only Queries
docfx --version
Prints the installed docfx version without loading MSBuild or docfx.json.
Controlled Writes & Previews
docfx metadata docfx.json --noRestore --warningsAsErrors
Generates API YAML metadata using --noRestore and fails on warnings.
docfx build docfx.json --warningsAsErrors -l docfx-log.json
Builds the static site into _site/ and writes structured JSON diagnostics to docfx-log.json.
Strengths for Agents
- + Official Microsoft .NET API + conceptual Markdown site compiler with
--noRestoreand--warningsAsErrors. - + Structured JSON diagnostic log export via
-l <log.json>.
Caveats & Pitfalls
- !
docfx metadatarequires a matching .NET SDK and runs MSBuild project loading. - ! JSON diagnostics write to a log file (
-l) rather than stdout.