How to construct a C# plug-in framework?
Asked Answered
L

2

5

I would like to implement a Plug-In framework for a C# application; such that the application doesn’t need to know of all of the available .DLL’s at time of compilation but can then be dynamically linked at run time. I expect that I will need to setup some expected parameters to pass information in and out of Plug-In’s but I’m not really sure of what else is needed or how to go about this in C#. Could you point me to a pattern for this implementation or a framework that I can implement to achieve this (if API’s - Open Source license required)?

Lass answered 28/8, 2009 at 10:38 Comment(1)
Look at codeplex.com/MEFDimorph
E
7

The Managed Extensibility Framework (MEF) is definitely something you want to take a look at. It's developed by Microsoft, and the stable release version is included in .NET 4.0 and later.

Edgeways answered 28/8, 2009 at 10:39 Comment(0)
A
5

You should have a look at Mono.Addins library. It's open source, easy to use, and really powerful (I think it's even used by MonoDevelop itself).

Alda answered 28/8, 2009 at 10:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.