dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.81k stars 450 forks source link

Enable the ServiceDefaults project to contribute shared configuration to projects that reference it #1053

Open DamianEdwards opened 11 months ago

DamianEdwards commented 11 months ago

The ServiceDefaults project today provides methods that are called from service projects to configure common defaults like metrics, HTTP client service discovery, health checks, etc. For some common concerns though, using the configuration system, e.g. JSON files, is the preferred.

We should enable the ServiceDefaults project to contribute to the configuration of the projects that reference it. This would be done in the following way:

A partial implementation of this proposal can be seen in here. It doesn't use the MSBuild targets proposed (like StaticWebAssets) but rather facilitates the coordination from data injected by the DevHost project, but the other aspects are inline with what's proposed here.

danmoseley commented 7 months ago

@DamianEdwards is this still relevant? for 8.0

DamianEdwards commented 7 months ago

We can move post-GA to reassess then.