mvvmmefcaliburn

Can't find System.ComponentModel.Composition with .NET Framework 4 installed


i think this sounds like a stupid question. i am starting with caliburn micro: customizing the bootstraper. i have .NET Framework 4 installed, VS2010. but when i try to add a using, there is intellisense that tells me i have System.ComponentModel.Design but no Composition or any of

using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;

available. i tried to add a reference but cannot find System.ComponentModel in the list even


Solution

  • Do you have the Managed Extensibility Framework installed? MSDN says that System.ComponentModel.Composition is part of MEF.

    Assuming that MEF is already included in .NET 4, you will also need to add a reference to System.ComponentModel.Composition.dll to your project.