dotnet / dotnet/aspnetcore

Allow multiple hosting startup assemblies to be specified without requiring semi-colon shenanigans

Open
#19,303 7 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.