The SpecFlow project (https://github.com/SpecFlowOSS/SpecFlow) provides an own plupin to integrate AutoFac as an external DI container. There is also a blog entry from the SpecFlow author where he describes how he did it (https://gasparnagy.com/2016/08/specflow-tips-customizing-dependency-injection-with-autofac/). He provided his AutoFac plugin as a template for integrating other DI containers. Unfortunately this article is a little bit outdated.
Is there anybody out there who has already build an integration for MEF (https://learn.microsoft.com/de-de/dotnet/framework/mef/)?