Silverlight和MEF的问题

时间:2010-08-18 08:28:07

标签: silverlight mef

我已将我的项目改编为MEF的dll System.ComponentModel.Composition.dll System.ComponentModel.Composition.Initialization.dll

来自C:\ Program Files \ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ Profile \ Client

但编译器无法识别PartInitializer。 为什么?!

alt text

1 个答案:

答案 0 :(得分:2)

PartInitializer已更改为CompositionInitializer

 CompositionInitializer.SatisfyImports(this)