.NET CLI
$ dotnet Official Low RiskCross-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.
brew install dotnet Direct local MSBuild/Roslyn toolchain for compiling, restoring, and testing .NET solutions.
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
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 jsonemits JSON- Supports
--nologo,--no-restore, and structured test loggers
--no-restore prevents implicit NuGet network fetches, though MSBuild targets in untrusted .csproj files can run arbitrary build tasks.
- Supports
--no-restoreand--locked-moderestore checks
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.jsonversion pinning
Unified CLI for scaffolding, NuGet management, MSBuild compilation, testing, and publishing.
- Single entrypoint covering entire .NET lifecycle
First-party Microsoft .NET toolchain under MIT license with predictable LTS/STS cadence.
- Official
dotnet/dotnetrepository
Comprehensive Microsoft Learn CLI documentation and clear per-subcommand --help.
- Detailed docs at learn.microsoft.com/dotnet/core/tools
Security, Auth & Guardrails
Local builds require no auth; private NuGet feeds read NuGet.Config or NUGET_API_KEY for dotnet nuget push.
MIT open-source SDK and runtime; completely free.
# .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
dotnet list package --format json
Exports resolved and transitive NuGet package dependencies in structured JSON.
dotnet --info
Reports active .NET SDKs, runtimes, and host OS environment cleanly.
Controlled Writes & Previews
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
-consoleloggerparametersor TRX/custom loggers are configured. - ! SDK installation footprint is large compared to single-binary tools.