joemoe
joemoe

Reputation: 5904

Basic MEF workflow/usage

I'm looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it also seems to work with older .NET versions as a separate library, as well as Mono).

I'm previously used Mono.Addins as for a plugin system for a different project. The basic idea is I define a set of interfaces, these become "extension points", a plugin API if you will for the application.

Can MEF be used in a similar manner? How can I get started with MEF, especially from the perspective of someone with experience with Mono.Addins?

Upvotes: 3

Views: 884

Answers (3)

kenny
kenny

Reputation: 22334

Will an IOC utility work for your needs? I've found autofac really straight forward.

Upvotes: 0

Scott Whitlock
Scott Whitlock

Reputation: 13839

Yes, and I posted an example of how to do what you're talking about with MEF in a CodeProject article: Building an Extensible Application with MEF, WPF, and MVVM

Upvotes: 3

Daniel Plaisted
Daniel Plaisted

Reputation: 16744

Have you looked at the MEF CodePlex Site? The Programming Guide there is a pretty good place to get started.

Upvotes: 1

Related Questions