dotnet-cli

Execute .NET CLI commands for build, test, run, and format operations.

2.5k|507|Updated Feb 7, 2014
One-click install
npx skills add https://github.com/exceptionless/Exceptionless --skill dotnet-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-cli
Source: https://github.com/exceptionless/Exceptionless/tree/main/.agents/skills/dotnet-cli
Command: npx skills add https://github.com/exceptionless/Exceptionless --skill dotnet-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development workflow for .NET projects by providing commands for building, testing, restoring packages, formatting code, and running applications.

Core Features & Use Cases

  • Package Management: Restore, add, remove, and list NuGet packages.
  • Build & Test: Compile solutions, run unit and integration tests with filtering.
  • Execution: Run projects with hot-reloading and manage build configurations.
  • Use Case: Troubleshoot build errors by cleaning and restoring packages, or quickly run a specific project in watch mode for rapid development.

Quick Start

Use the dotnet-cli skill to restore all packages for the current .NET solution.

Frequently Asked Questions about dotnet-cli

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

FAQPage Schema
How do I build and test a .NET solution from the command line?

You can build and test a .NET solution by executing CLI commands that compile projects and run unit or integration tests with filtering. This streamlines the development workflow through deterministic build and test execution operations.

Can I manage NuGet packages for a .NET Core project using the CLI?

Yes, you can manage NuGet packages for a .NET Core project using the CLI to restore, add, remove, and list dependencies. This handles package restoration efficiently without leaving the command-line environment.

What is the best way to troubleshoot .NET build errors in a development environment?

The best way to troubleshoot .NET build errors is to clean the solution and restore NuGet packages via CLI commands. This resolves dependency conflicts and ensures a deterministic state before recompiling the project.

Does the .NET CLI support running projects with hot-reloading?

Yes, the .NET CLI supports running projects with hot-reloading through watch mode for rapid development. It manages build configurations while applying code changes dynamically during execution.

Can I format code automatically in a C# and .NET Core project?

Yes, you can format code automatically in a C# and .NET Core project using dedicated CLI commands. This enforces consistent styling across the solution as part of the standard .NET SDK command-line interaction.