Allow multiple hosting startup assemblies to be specified without requiring semi-colon shenanigans
Open
affected-few
area-hosting
area-networking
enhancement
severity-minor
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
This came up as part of https://github.com/dotnet/aspnetcore/issues/17272. Rather than relying on semi-colons to separate multiple listing, it would be convenient if multiple hosting startup assemblies could be keyed off a common prefix rather than requiring the `ASPNETCORE_HOSTINGSTARTUPASSEMBLIES` key. Consider:
```
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES = "AssemblyA;AssemblyB"
vs
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES_KeyA = "AssemblyA"
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES_KeyB = "AssemblyB"
```
In particular when authoring templates, this avoids the accidentally stomping over an existing value or writing complicated if-elses.
Contributor guide
Assessment
This issue has not been assessed yet.