Jan 2nd, 2014, 04:53 PM
VB.NET Basic Example of WinForms Managed Extensibility Framework (MEF)
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
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!
Last edited by polecat; Jan 2nd, 2014 at 04:58 PM.
Tags for this Thread
Click Here to Expand Forum to Full Width
Survey posted by VBForums.