Jomo Fisher—The Managed Extensibility Framework is an interesting new technology in .NET 4.0. It lets you set up a plug in system for your application so that your program can acquire new functionality just by, for example, adding a .dll into a particular directory.
This is a simple example in F#. This code sets up MEF hosting and asks for all extensions in the c:\extensions folder.
This is how you implement an extension. Just build this into a .dll and drop it in the c:\extensions directory.
Now, if you run the host program you should see this:
Yum, it was a a delicious chocolate cookie Press any key to continue . . .
Hi,
this is a very interesting article. Is it possible to load F# script files (fsx) instead of dll files using the DirectoryCatalog?
Best regards,
Oldrich