Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The way to create a plug-in application

Tags:

c#

.net

winforms

I have a .NET WinForm application. I want when my application run, it will detect a DLL. If this DLL exists, my app will load and use it like a built-in DLL.

Please help me some examples. Thanks.

like image 309
Leo Vo Avatar asked Jan 26 '26 05:01

Leo Vo


2 Answers

Read up on MEF - Microsoft Extensibility Framework, in the System.ComponentModel.Composition namespace. Part of the core .NET 4.0 functionality.

like image 196
TomTom Avatar answered Jan 28 '26 17:01

TomTom


You can also use the Microsoft Add-In Framework (MAF) using System.Addin Namespace.

Read more on http://msdn.microsoft.com/en-us/library/bb384200.aspx

like image 21
Sascha Hennen Avatar answered Jan 28 '26 18:01

Sascha Hennen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!