将 MEF 类库移植到 netstandard 2.0?

Ste*_*oco 1 .net mef

我在 Framework 4.7.1 中内置了一个使用 MEF 的小型类库。具体来说,它包括:

ComposablePartCatalog AggregateCatalog CompositionContainer DirectoryCatalog

我可以将其移植到 Netstandard 2.0 库吗?

显然这些类不存在于 API 中。是否有 NuGet 包或我可以迁移到的东西?

一般来说,这些类或替代品会在某个时候出现在 Netstandard 中吗?

Ste*_*oco 5

我通过使用 MyGet.org 上的 Microsoft 预览版 Mef 包解决了这个问题。它是:

System.ComponentModel.Composition 4.5.0-预览版1-26002-01

截至今日。