What problem does it solve?
This Skill addresses the challenge of managing configuration in .NET Aspire applications, ensuring that application code remains clean and decoupled from Aspire's infrastructure concerns, promoting portability and transparency.
Core Features & Use Cases
- Explicit Configuration Mapping: Translates Aspire resource outputs into explicit environment variables for application consumption.
- Decoupled Application Code: Prevents application projects from depending on Aspire client or service-discovery packages.
- Production Parity: Ensures that configuration injected by AppHost can be easily mirrored in production environments using standard methods like environment variables.
- Use Case: When developing a .NET Aspire application, use this Skill to ensure your API project only consumes configuration via
IOptions<T> and doesn't directly interact with Aspire's service discovery mechanisms, making it easier to deploy and test.
Quick Start
Use the aspire-configuration skill to wire AppHost resources to application configuration in Aspire-based repos.