注入 Serilog 时出错 "Prism.DryIoc DryIoc.Microsoft.DependencyInjection6.0.0 "

Error while injecting Serilog "Prism.DryIoc DryIoc.Microsoft.DependencyInjection6.0.0 "

我有这个代码。

protected override IContainerExtension CreateContainerExtension()
        {
            var serviceCollection = new ServiceCollection();
            serviceCollection.AddLogging(configure =>
            {
                configure.AddSerilog(dispose: true);
            });

            return new DryIocContainerExtension(new Container(CreateContainerRules())
                .WithDependencyInjectionAdapter(serviceCollection));
        }

当我使用DryIoc. Microsoft. DependencyInjection 5.1.0升级到DryIoc.Microsoft. DependencyInjection6.0.0,

return new DryIocContainerExtension(new Container(CreateContainerRules())
            .WithDependencyInjectionAdapter(serviceCollection));

我有这个错误

 "Method not found: 'DryIoc.Rules DryIoc.Rules.WithoutFastExpressionCompiler()"

我该怎么办?提前致谢!

WithoutFastExpressionCompiler 在 DryIoc v5 和 DryIoc.MD.DI v6 中不再是每个依赖项的选项。 Prism.DryIoc 应该适应。请在 Prism 存储库中打开一个问题。