Aspire Configuration
Explicit AppHost-to-app configuration bridge that keeps Aspire client and service-discovery packages out of app code.
- CCM score
- 69 of 100
- skills.sh installs
- 514
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the flow from AppHost resource outputs through
WithEnvironment(...)intoIOptions<T>bindings in app projects - Includes C# patterns for database references via
WithReference, a MinIO blob storage container, and feature-toggle overrides - Enforces that Aspire hosting packages stay in AppHost and that every injected value can be set as a production env var
- Designed for .NET teams running Aspire locally who need production configuration to remain portable without Aspire
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill aspire-configuration -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Aspire Configuration
When to Use This Skill
Use this skill when:
- Wiring AppHost resources to application configuration in Aspire-based repos
- Ensuring production configuration is transparent and portable outside of Aspire
- Avoiding Aspire client/service-discovery packages inside application code
- Designing feature toggles for dev/test without changing app code paths
Core Principles
-
AppHost owns Aspire infrastructure packages
- Aspire Hosting packages belong in AppHost only.
- App projects should not reference Aspire client/service-discovery packages.
-
Explicit configuration only
- AppHost must translate resource outputs into explicit config keys (env vars).
- App code binds to
IOptions<T>orConfigurationonly.
-
Production parity and transparency
- Every value injected by AppHost must be representable in production as env vars or config files without Aspire.
- Avoid opaque service discovery and implicit configuration.
Configuration Flow
AppHost resource -> WithEnvironment(...) -> app config keys -> IOptions<T> in app
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- .NET & C#, DevOps & Cloud
- First seen
- Jun 3, 2026
Questions
What does the aspire-configuration skill do?
It configures the Aspire AppHost to pass explicit application configuration through environment variables, so app code reads only IOptions and Configuration values. Application code stays free of Aspire client packages and service discovery.
Where does aspire-configuration sit in the .NET & C# category?
It is in the .NET & C# category, alongside dotnet-backend-patterns, dotnet-best-practices, nuget-manager and microsoft-code-reference. It stands out by focusing on keeping Aspire orchestration out of the application projects.
How do I install the aspire-configuration skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill aspire-configuration -y in your project. The skill then lets the agent wire AppHost resources such as databases and blob storage into explicit config keys.
Who should use the aspire-configuration skill?
It suits .NET developers using Aspire who want production configuration to stay transparent and portable outside Aspire. It also helps when designing feature toggles for dev and test without changing app code paths.
More from aaronontheweb/dotnet-skills
All 34- Dotnet Devcert Trust486
- Skills Index Snippets485
- Playwright Ci Caching483
- Akka Net Best Practices477
- Mailpit Integration471
- OpenTelemetry NET Instrumentation464
- Verify Email Snapshots464
- Akka Hosting Actor Patterns460
- Akka Net Testing Patterns457
- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.7K
- Database Performance741
- Dependency Injection Patterns741
- Dotnet Project Structure731
- Api Design723
- Type Design Performance723
- Ilspy Decompile695
- Package Management644
- Microsoft Extensions Configuration643
- Serialization630
Similar to Aspire Configuration
More .NET & C#dependency-injection-patternsSkillaaronontheweb/dotnet-skills741 installsOrganize service registrations into composable IServiceCollection Add* extension methods for clean Program.cs files.
akka-net-aspire-configurationSkillaaronontheweb/dotnet-skills442 installsConfiguration guide for wiring Akka.NET actor systems into .NET Aspire, covering clustering, SQL persistence, and Akka.Management.
microsoft-extensions-configurationSkillwshaddix/dotnet-skills532 installsStartup-validated .NET configuration patterns using IValidateOptions, data annotations, and environment-aware checks.
aspireSkillgithub/awesome-copilot9K installsAspire-based orchestration CLI and skill for building, running, and deploying polyglot distributed applications with an AppHost.
containerize-aspnet-frameworkSkillgithub/awesome-copilot8.7K installsContainerize ASP.NET .NET Framework projects with a multi-stage Windows Dockerfile and config-builder setup.
ExecutorMCP serverUsefulSoftwareCo4.7K starsConnects agents to OpenAPI, MCP, GraphQL, and custom services through one credential-safe endpoint.