Skip to content

ResolveServiceProviderFactory should work with Minimal Hosting #31861

@shirhatti

Description

@shirhatti

Tools like EF migration rely on Program.CreateDefaultBuilder() at build-time to build the service container and resolve services (like DbContext).

https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.HostFactoryResolver/src/HostFactoryResolver.cs

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-hosting

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions