dotnet/aspnetcore

Improve population of application parts when there's no entry-point assembly

Open

#43.460 aperta il 22 ago 2022

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C# (10.653 fork)batch import
area-mvchelp wanted

Metriche repository

Star
 (37.933 star)
Metriche merge PR
 (Merge medio 16g 9h) (258 PR mergiate in 30 g)

Descrizione

Currently the application parts population eventually ends up using Assembly.GetEntryAssembly which may return null in native hosting scenarios (direct hosting through hostfxr, or IJW/COM). When this happens the population will silently do nothing, which is unexpected.

See https://github.com/dotnet/runtime/issues/73516 for more details on one such scenario

Guida contributor