Agent skill

dotnet-cli

Use this skill when running .NET CLI commands — building, testing, restoring packages, formatting code, or running projects. Covers dotnet build, test, restore, format, run, and NuGet package management. Apply when troubleshooting build errors, running the backend, or executing any dotnet command-line operation.

Stars 2,455
Forks 508

Install this agent skill to your Project

npx add-skill https://github.com/exceptionless/Exceptionless/tree/main/.agents/skills/dotnet-cli

SKILL.md

.NET CLI

Prerequisites

  • .NET SDK 10.0
  • NuGet feeds defined in NuGet.Config

Common Commands

Restore Packages

bash
dotnet restore

Build Solution

bash
dotnet build

Run Tests

bash
# All tests
dotnet test

# By test name
dotnet test --filter "FullyQualifiedName~CanCreateOrganization"

# By class name
dotnet test --filter "ClassName~OrganizationTests"

# By category/trait
dotnet test --filter "Category=Integration"

Run Project

bash
# Run the AppHost (recommended for full stack)
dotnet run --project src/Exceptionless.AppHost

# Run specific project
dotnet run --project src/Exceptionless.Web

Format Code

bash
# Format all C# files
dotnet format

# Check without making changes
dotnet format --verify-no-changes

NuGet Configuration

Feeds are defined in NuGet.Config — do not add new sources unless explicitly requested.

Directory.Build.props

Shared settings live in src/Directory.Build.props:

  • Target framework versions
  • Common package references
  • Build properties

Keep changes consistent across the solution.

Build Configurations

bash
# Debug build (default)
dotnet build

# Release build
dotnet build -c Release

# Clean and rebuild
dotnet clean && dotnet build

Watch Mode

bash
# Run with hot reload
dotnet watch run --project src/Exceptionless.Web

Package Management

bash
# Add package to project
dotnet add package Foundatio

# Remove package
dotnet remove package OldPackage

# List packages
dotnet list package

# Check for outdated packages
dotnet list package --outdated

Solution Management

bash
# Build specific project
dotnet build src/Exceptionless.Core

# List projects in solution
dotnet sln list

Environment Variables

bash
# Set environment for run
ASPNETCORE_ENVIRONMENT=Development dotnet run --project src/Exceptionless.Web

Troubleshooting

Clean Restore

bash
# Clear NuGet cache and restore
dotnet nuget locals all --clear
dotnet restore

Verbose Build

bash
dotnet build -v detailed

Expand your agent's capabilities with these related and highly-rated skills.

exceptionless/Exceptionless

foundatio-repositories

2,455 508
Explore
exceptionless/Exceptionless

releasenotes

Generate formatted changelogs from git history since the last release tag. Use when preparing release notes that categorize changes into breaking changes, features, fixes, and other sections.

2,455 508
Explore
exceptionless/Exceptionless

e2e-testing

Use this skill when writing or running end-to-end browser tests with Playwright. Covers Page Object Model patterns, selector strategies (data-testid, getByRole, getByLabel), fixtures, and accessibility audits with axe-playwright. Apply when adding E2E test coverage, debugging flaky tests, or testing user flows through the browser.

2,455 508
Explore
exceptionless/Exceptionless

tanstack-query

Use this skill when fetching data, managing server state, or handling API mutations in the Svelte frontend. Covers createQuery, createMutation, query keys, cache invalidation, optimistic updates, and WebSocket-driven refetching. Apply when adding API calls, managing loading/error states, or coordinating cache updates after mutations.

2,455 508
Explore
exceptionless/Exceptionless

dogfood

Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.

2,455 508
Explore
exceptionless/Exceptionless

storybook

Use this skill when creating or updating Storybook stories for Svelte components. Covers Svelte CSF story format, defineMeta, argTypes, snippet-based customization, and autodocs. Apply when adding visual documentation for components, setting up story files, or running Storybook for development.

2,455 508
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results