dotnet-cli-essentials

Manage .NET 10 projects with standard dotnet CLI commands.

14|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill dotnet-cli-essentials
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-cli-essentials
Source: https://github.com/NotMyself/claude-stack-dotnet/tree/main/.claude/skills/dotnet-cli-essentials
Command: npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill dotnet-cli-essentials

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a quick reference and guide to essential .NET CLI commands, simplifying common tasks like building, running, testing, and managing projects and packages in .NET 10 solutions.

Core Features & Use Cases

  • Project Lifecycle Management: Build, run, and clean .NET projects and solutions efficiently.
  • Comprehensive Testing: Execute all tests or specific test projects, with options for filtering and detailed output.
  • Solution & Package Control: Manage projects within a solution and handle NuGet packages using centralized package management.
  • Use Case: When starting a new .NET project or onboarding a new team member, use this skill to quickly get up to speed with the fundamental command-line operations for development.

Quick Start

Show me the command to build my entire .NET solution in Release configuration.

Frequently Asked Questions about dotnet-cli-essentials

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a .NET solution in Release configuration from the command line?

Use `dotnet build --configuration Release` to build your entire solution in Release mode. The dotnet CLI compiles all projects in your solution with optimizations enabled, producing release-ready binaries.

What's the best way to run tests across a multi-project .NET solution?

Run `dotnet test` from your solution root to execute all test projects. The dotnet CLI discovers and runs tests in each project, displaying results with filtering and detailed output options available via command flags.

Can I manage package versions centrally in a .NET 10 solution?

Yes, use Directory.Packages.props to centralize NuGet package versions across projects. This file lets you define versions once and reference them in individual projects, ensuring consistency without duplicating version specifications.

How do I manage multiple projects within a single .NET solution using the CLI?

Use `dotnet sln` commands to add, remove, or list projects in your solution. For slnx-formatted solutions, the dotnet CLI manages project relationships, enabling you to build, test, or clean specific projects or the entire solution consistently.

What dotnet CLI commands do I need to know for daily .NET development workflows?

Core commands are: `dotnet build` (compile), `dotnet run` (execute), `dotnet test` (validate), `dotnet restore` (fetch dependencies), `dotnet clean` (remove artifacts), and `dotnet watch` (auto-rebuild on file changes). These cover the complete project lifecycle.

Does the dotnet CLI support watching files for automatic rebuilds during development?

Yes, `dotnet watch build` or `dotnet watch run` automatically recompile your project when source files change. This accelerates the development loop by eliminating manual rebuild commands after edits.