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

VS 2010 Beta and MEF - Different ????

May 18, 2009 at 9:57 PM

Hi, I'm in the middle of downloading the VS 2010 beta and wanted to ask the MEF developers how the version of MEF included in the VS 2010 beta relates to MEF preview 5....:

Is the MEF code in VS2010 beta a newer or older drop than MEF preview 5?

Are there any significant differences between preview 5 and the VS 2010 version?

Thanks in advance,



May 19, 2009 at 10:08 PM
Edited May 19, 2009 at 10:08 PM

They should be the same, at this time I cannot think of any differences (asside from the Beta one being signed and installed in the GAC). If I find out there are any differences I will try to post them on this thread.

May 20, 2009 at 12:10 AM


Jun 23, 2009 at 11:01 AM

I can't find ImportRequiredMetadata attribute, in .net 4.0

Jun 23, 2009 at 5:53 PM

This attribute has been removed. You can use strongly-typed metadata instead.




IPerson person;


public interface IPersonMetadata { string Name { get; set; } }

// …


Export<IPerson, IPersonMetadata> person;

The public properties on the metadata view interface will be considered required metadata, and their values can be read in this example via person.Metadata.



From: Vardi []
Sent: Tuesday, June 23, 2009 3:02 AM
To: Nicholas Blumhardt
Subject: Re: VS 2010 Beta and MEF - Different ???? [MEF:56700]

From: Vardi

I can't find ImportRequiredMetadata attribute, in .net 4.0

Read the full discussion online.

To add a post to this discussion, reply to this email (

To start a new discussion for this project, email

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at