Let's say I have got this kind of structure:
|
|-Plugins
|-Plugin1.cs
|-Plugin2.cs
|-Plugin3.cs
|-PluginBase.cs
|-PluginList.cs
where each class in the Plugins
folder extends from PluginBase.cs
.
I need my PluginList.cs
to export a list of the available plugins, so that the app can use it to make the user choose which one he wants.
Now, since this is my first experience with C#, I don't know how this works.
Searching online I found something about the Managed Extensibility Framework but I'm not sure if this is what I need.
My very raw idea is to scan the Plugin directory and list them but I don't know if C# as an equivalent to Java's Class
class so I've not tried yet.
Since I'm talking about a mobile application, I also want it to be as fast as possible, so maybe this scanning method is not the best one.
Any idea?
EDIT:
So, the best thing to do is to use MEF2 but I can't make it work because Visual Studio won't let me add the assembly to the project (tried with Nuget and by manually adding the dlls).
Is there any alternative to MEF2?