I can't find any good examples on MEF2.
I would like to create a plugin directory and use a directory catalog to load up Imports.
What I would like:
Could I just use Castle Windsor for this?
If you're referring to the new Windows Store version of MEF available on nuget, then the documentation states,
There is no catalog concept, nor composition batches, nor any “container hierarchy” or composition scoping APIs.
Sounds crazy to an MEF 1 developer, but the page explains the rationale well. However, you require:
- When a dll is added the application is aware of new Exports available.
This is explicitly unavailable in MEF 2 (Win Store) version, since it doesn't support re-composition. For that you need the "full" MEF from the .NET Framework, in System.ComponentModel.Composition
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With