Open
Description
Currently, Foundatio.Extensions.Hosting
has a FrameworkReference
to Microsoft.AspNetCore.App
in order to accommodate the startup filters and middleware. However, this package isn't just limited to ASP.NET. In fact, we use it inside of a Worker Service (no web component) to leverage the HostedJobService
and friends. I noticed today while examining the outputs of a self-contained publish that the ASPNET shared framework assemblies were all being included. This is increasing application publish size (and the size of our docker images) and is entirely unnecessary for non-ASP applications.
I suggest splitting the package into two -- one for the hosted service infrastructure and the other for the ASP.NET-specific components.
Metadata
Assignees
Labels
No labels
Activity