Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

.NET CLI

$ dotnet Official Low Risk
Microsoft · Code & DevOps · MIT · macos / linux / windows

Cross-platform command-line SDK for .NET applications, libraries, and NuGet packages. Supports dotnet list package --format json, dotnet test --logger, --no-restore offline guards, and DOTNET_NOLOGO=1 / DOTNET_CLI_TELEMETRY_OPTOUT=1 for clean headless automation.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install dotnet
CLI vs MCP Decision CLI Only

Direct local MSBuild/Roslyn toolchain for compiling, restoring, and testing .NET solutions.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Supports dotnet list package --format json, --nologo, --verbosity quiet|minimal, and --no-restore, though build/test errors default to MSBuild text.

  • dotnet list package --format json emits JSON
  • Supports --nologo, --no-restore, and structured test loggers
Trust & Safety 20 / 25

--no-restore prevents implicit NuGet network fetches, though MSBuild targets in untrusted .csproj files can run arbitrary build tasks.

  • Supports --no-restore and --locked-mode restore checks
Setup & Portability 13 / 15

Official installers, Homebrew, winget, and Linux packages cover macOS, Linux, and Windows, though the full SDK footprint is several hundred megabytes.

  • Cross-platform Microsoft SDK packages and global.json version pinning
Utility & Efficiency 13 / 15

Unified CLI for scaffolding, NuGet management, MSBuild compilation, testing, and publishing.

  • Single entrypoint covering entire .NET lifecycle
Maintenance & Lineage 10 / 10

First-party Microsoft .NET toolchain under MIT license with predictable LTS/STS cadence.

  • Official dotnet/dotnet repository
Docs & Verifiability 9 / 10

Comprehensive Microsoft Learn CLI documentation and clear per-subcommand --help.

  • Detailed docs at learn.microsoft.com/dotnet/core/tools

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

Local builds require no auth; private NuGet feeds read NuGet.Config or NUGET_API_KEY for dotnet nuget push.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source SDK and runtime; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# .NET CLI (dotnet) Agent Rules
- Set `DOTNET_NOLOGO=1` and `DOTNET_CLI_TELEMETRY_OPTOUT=1` and pass `--verbosity minimal` to keep logs concise.
- Use `--no-restore` when verifying edits offline; never run `dotnet nuget push` without user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List project NuGet dependencies as JSON
dotnet list package --format json

Exports resolved and transitive NuGet package dependencies in structured JSON.

Inspect installed SDKs and runtimes
dotnet --info

Reports active .NET SDKs, runtimes, and host OS environment cleanly.

Controlled Writes & Previews

Build and test without network restore
dotnet test --no-restore --verbosity minimal --nologo

Runs unit tests using cached NuGet packages with concise output and no welcome banner.

Strengths for Agents

  • + Unified toolchain for restore, build, test, and NuGet inspection with dotnet list package --format json.
  • + Predictable headless flags (--nologo, --no-restore, --verbosity minimal).

Caveats & Pitfalls

  • ! Compiler and test failure output defaults to MSBuild text unless -consoleloggerparameters or TRX/custom loggers are configured.
  • ! SDK installation footprint is large compared to single-binary tools.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI