Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mvvm

mef

caliburn

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

like image 337
Jiew Meng Avatar asked Jan 21 '23 12:01

Jiew Meng


1 Answers

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.

like image 64
Robert Harvey Avatar answered Feb 23 '23 00:02

Robert Harvey