aspire

Configure .NET Aspire AppHost orchestration with ServiceDefaults and service discovery.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill aspire-trossitec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspire
Source: https://github.com/Trossitec/dotnet-claude-kit/tree/main/skills/aspire
Command: npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill aspire-trossitec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves confusion and brittle setup when building local, cloud-native .NET systems, where developers need consistent orchestration, service discovery, observability, and infrastructure wiring.

Core Features & Use Cases

  • AppHost orchestration patterns: Configure a DistributedApplication with databases, caches, and message brokers, then wire application projects via references for reliable local startup.
  • ServiceDefaults for consistent infrastructure: Centralize OpenTelemetry, health checks, resilience, and service discovery so each service stays aligned without repetitive boilerplate.
  • Service discovery and inter-service communication: Model service-to-service connectivity using Aspire-managed endpoints (instead of hardcoded connection strings or local host assumptions).

Use case: You are running an API plus background worker that depend on PostgreSQL and Redis, and you want tracing/health checks and reliable connectivity in local development using Aspire’s AppHost and dashboard.

Quick Start

Load the aspire skill when you start an Aspire AppHost and configure your database and cache resources, then reference them from your API and worker projects using Aspire service discovery.

Frequently Asked Questions about aspire

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

FAQPage Schema
How do I configure .NET Aspire AppHost orchestration for local databases and caches?

Configure .NET Aspire AppHost orchestration by defining a DistributedApplication with database and cache resources, then wire application projects via references for reliable local startup and connectivity.

What is the best way to set up OpenTelemetry and health checks in a distributed .NET application?

The best way to set up OpenTelemetry and health checks is using Aspire ServiceDefaults to centralize infrastructure, ensuring each service stays aligned without repetitive boilerplate.

How does service discovery work for inter-service communication in .NET Aspire?

Service discovery in .NET Aspire works by modeling service-to-service connectivity using Aspire-managed endpoints, replacing brittle hardcoded connection strings and local host assumptions.

Can I use .NET Aspire as a production deployment platform for cloud-native applications?

No, you cannot use .NET Aspire as a production deployment platform. It is designed for local distributed development orchestration and observability, not production hosting.

Why should I avoid hardcoded connection strings when running local .NET microservices?

Avoid hardcoded connection strings in local .NET microservices because Aspire service discovery manages endpoints dynamically, preventing brittle setup and ensuring reliable local connectivity.