OrchardCore
OrchardCore copied to clipboard
Shell blueprint is missing dependencies
Describe the bug
During startup, the ShellContainerFactory
is relying on the ShellBlueprint.Dependencies
property to get all startup classes that needs to be added to DI. But if an extension contains only features that do not match the extension ID, dependencies without any feature assignment are not added to the blueprint at all.
That means that some startup classes not executed at all.
Orchard Core version
Reproducible in 1.8.3
and later. I didn't check earlier versions.
To Reproduce
- Enable the features
Microsoft Entra ID Authentication
andDeployment
. - Create a deployment plan and add steps to it. The
Microsoft Entra ID
step is missing there, because its startup classOrchardCore.Microsoft.Authentication.DeploymentStartup
is not executed.
Expected behavior
All startup classes which meet their dependencies should be executed.