What problem does it solve?
This Skill helps you configure your .NET Aspire AppHost to explicitly emit application configuration via environment variables, ensuring your application code remains clean and free from Aspire client dependencies and service discovery mechanisms.
Core Features & Use Cases
- Explicit Configuration Mapping: Wire AppHost resources directly to application configuration keys.
- Production Parity: Ensure configuration is transparent and portable outside of the Aspire environment.
- Avoids Aspire Client Packages: Keeps application projects free from Aspire client/service-discovery packages.
- Use Case: When developing an Aspire application, you want to ensure that the database connection string and blob storage endpoint, provisioned by the AppHost, are exposed as standard environment variables that your application can bind to using
IOptions<T>, rather than relying on Aspire's built-in service discovery.
Quick Start
Use the aspire-configuration skill to map the 'postgres' resource to the 'ConnectionStrings__Postgres' configuration key in the AppHost.