VS 2010 Beta and MEF - Different ????

May 18, 2009 at 8: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,

Phil

 

Developer
May 19, 2009 at 9:08 PM
Edited May 19, 2009 at 9: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 19, 2009 at 11:10 PM

Thanks.

Jun 23, 2009 at 10:01 AM

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

Jun 23, 2009 at 4:53 PM

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

e.g.

[Import]

[ImportRequiredMetadata(“Name”)]

IPerson person;

Becomes:

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

// …

[Import]

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.

HTH,

Nick

From: Vardi [mailto:notifications@codeplex.com]
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 (MEF@discussions.codeplex.com)

To start a new discussion for this project, email MEF@discussions.codeplex.com

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

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