WAF System.ComponentModel.Composition

Jul 1, 2010 at 3:52 PM

Trying to modify the current version of the BookLibrary sample for my project but am not able to reference System.ComponentModel.Composition. I am using 3.5. Should I use a different version of the sample?

Coordinator
Jul 2, 2010 at 4:31 PM

System.ComponentModel.Composition is better known as MEF (Managed Extensibility Framework). This component is part of the .NET Framework 4.0 but you can download it for .NET Framework 3.5 as well. WAF ships the .NET 3.5 version of this component in the folder ManagedExtensibilityFramework.

When you are using .NET 3.5 then you need to add a reference to the System.ComponentModel.Composition.dll assembly in the ManagedExtensibilityFramework folder. That’s what the BookLibrary already does.