views:

28

answers:

1

I've refferenced my project to the MEF's dlls System.ComponentModel.Composition.dll System.ComponentModel.Composition.Initialization.dll

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

But the compiler doesn't recognize the PartInitializer. Why ?!

alt text

+7  A: 

PartInitializer is changed to CompositionInitializer:

 CompositionInitializer.SatisfyImports(this)
Ardman
Thank alot!!!How did you found that ?
Erez
I was doing a project yesterday using SL and MEF :o)
Ardman
Ofcourse, I wanted to do that before but StackOverflow didn't let me before 9 minutes been past after asking the question.
Erez