This project has moved and is read-only. For the latest updates, please go here.

Problem with building the MEF solution

Dec 16, 2009 at 6:48 PM



I Dowonloaded the MEF_Beta_2 project. When i want to build the mentioned solution i get the following error:


Error 1 The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) D:\MEF_Beta_2\Samples\MEFStudio\Designers\None\MyRootDesigner.cs 14 17 Designers



So, what am i missing? Pleace help...

Dec 17, 2009 at 9:08 PM

Hi Slavc

What version of VS are you using? Express, Pro, etc?



Dec 18, 2009 at 2:19 PM
Edited Dec 18, 2009 at 8:37 PM

Hi Glenn

I am using VS 2010 Professional version 10.0.21006.1 B2Rel


Jan 12, 2010 at 3:12 PM

When can we await the MEF project to be build on .NET 4?


Jan 12, 2010 at 7:06 PM

MEF is included as part of .NET 4.

Jan 28, 2010 at 2:22 PM

I'm using the exact same version and having the exact same issue.

Did anyone work out a resolution for this?




Jan 28, 2010 at 4:47 PM

Currently the MEF solution we are releasing on codeplex is only targeted at .Net 3.5 (and SL) but not .Net 4.0. As Jeff points out MEF is included as part of .Net 4.0 and you should probably use that version of MEF if you are targeting .Net 4.0. At some point in the future we may consider releasing a .Net 4.0 version of the solution. 

Jan 30, 2010 at 2:31 PM

For those like myself who would like to use VS2010 with MEF Beta 2 the following steps will allow you to compile and run the sample solutions:

  1. Unload the MEFStudio.Designers project
  2. Do a Solution "Search and Replace" for the following:
    • Find "Lazy"   rename to  "BeLazy"  (I was going to use BetaLazy but BeLazy looked better ;)
    • Find "Tuple"  rename to  "BeTuple"