aaronontheweb avatar

Aspire Configuration

This keeps your Aspire apps production-ready by forcing everything through explicit environment variables instead of leaning on service discovery magic. You wire up resources like Postgres or MinIO in the AppHost using WithEnvironment calls that map to config keys, then your actual app code just reads IOptions or Configuration like any normal .NET service. No Aspire client packages pollute your application projects. The payoff is that your dev setup looks exactly like what you'll deploy, every setting can be represented as an env var in Kubernetes or wherever, and you can spin up integration tests without mysterious orchestration leaking into your domain logic. It's opinionated but honest about keeping infrastructure concerns in one place.

skills.sh installs
487
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill aspire-configuration --agent claude-code

Installs into .claude/skills of the current project.

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

  1. AppHost owns Aspire infrastructure packages

    • Aspire Hosting packages belong in AppHost only.
    • App projects should not reference Aspire client/service-discovery packages.
  2. Explicit configuration only

    • AppHost must translate resource outputs into explicit config keys (env vars).
    • App code binds to IOptions<T> or Configuration only.
  3. 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

Sponsors

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
Sales & Marketing, .NET & C#
First seen
Jun 3, 2026

More from aaronontheweb/dotnet-skills

All 34
1yeachan-heo avatardeep-diveyeachan-heo/oh-my-claudecode2-stage pipeline: trace (causal investigation) -> deep-interview (requirements crystallization) with 3-point injection477skills.sh installs
2parcadei avataragentica-serverparcadei/continuous-claude-v3Agentica server + Claude proxy setup - architecture, startup sequence, debugging476skills.sh installs
3ccheney avatarmermaid-diagramsccheney/robust-skillsProactively suggest diagrams when explaining complex systems. Triggers on diagrams, charts, visualizations, flowcharts, sequence diagrams, architecture diagrams473skills.sh installs
4galaxy-dawn avatarml-paper-writinggalaxy-dawn/claude-scholarWrite publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, conducting literature reviews, find469skills.sh installs
5jezweb avatarcloudflare-r2jezweb/claude-skillsStore objects with R2's S3-compatible storage on Cloudflare's edge. Use when: uploading/downloading files, configuring CORS, generating presigned URLs, multipar462skills.sh installs
6tamtom avatargplay-cli-usagetamtom/gplay-cli-skillsGuidance for using the Google Play Console CLI in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design gplay comm458skills.sh installs