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.
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
dotnet restore
Build Solution
dotnet build
Run Tests
# 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
# Run the AppHost (recommended for full stack)
dotnet run --project src/Exceptionless.AppHost
# Run specific project
dotnet run --project src/Exceptionless.Web
Format Code
# 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
# Debug build (default)
dotnet build
# Release build
dotnet build -c Release
# Clean and rebuild
dotnet clean && dotnet build
Watch Mode
# Run with hot reload
dotnet watch run --project src/Exceptionless.Web
Package Management
# 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
# Build specific project
dotnet build src/Exceptionless.Core
# List projects in solution
dotnet sln list
Environment Variables
# Set environment for run
ASPNETCORE_ENVIRONMENT=Development dotnet run --project src/Exceptionless.Web
Troubleshooting
Clean Restore
# Clear NuGet cache and restore
dotnet nuget locals all --clear
dotnet restore
Verbose Build
dotnet build -v detailed
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
foundatio-repositories
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.
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.
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.
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.
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.
Didn't find tool you were looking for?