My app is inheriting from Prism.PrismApplication and the generated code from magican is generating a partial class that overrides InitializeModules.
The problem is that PrismApplication is sealing the InitializeModules which leads to this error:
'App.InitializeModules()': cannot override inherited member 'PrismApplication.InitializeModules()' because it is sealed
PrismApplication code:
protected sealed override void InitializeModules()
{
if (ModuleCatalog is null)
{
ModuleCatalog = Container.Resolve<IModuleCatalog>();
}
else
{
((IContainerExtension)Container).RegisterInstance<IModuleCatalog>(ModuleCatalog);
}
if (ModuleCatalog.Modules.Any())
{
var manager = Container.Resolve<IModuleManager>();
manager.LoadModuleCompleted += PrismApplication_LoadModuleCompleted;
manager.Run();
}
}
Versions: Prism.Magican 8.1.9 Prism.DryIoc.Extensions 8.0.67
My app is inheriting from
Prism.PrismApplication
and the generated code from magican is generating a partial class that overridesInitializeModules
. The problem is that PrismApplication is sealing theInitializeModules
which leads to this error:'App.InitializeModules()': cannot override inherited member 'PrismApplication.InitializeModules()' because it is sealed
PrismApplication code:
Magican generated code: