Yay my First Codebank Submission!!!! go easy on me!
After Building an Application that required so extensibility I decided to go with MEF after a lot of searching I could not find a VB.NET WinForms example.
The documentation here http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx is a bit misleading and the example is for a console application
and the way they have mixed up the usage of imports is confusing for beginners so I put a small basic example together (Attached).
The Example was done in VS2010 sorry don't like VS2012!
open the solution and view the code there are some comments
Just make sure that the references are ok for
Code:
System.ComponentModel.Composition
1) Run MainApp without building the 2 extensions
2) Build the 2 extensions into the MainApp > Extensions path
3) Re Run MainApp
That's it really just thought it was worth posting for some beginners! This is only intended as a very basic Starter!
An this may not be absolutely correct usage but it works!