C # plugin question

so I implemented a really simple plugin system.

i have the following assemblies:

MainApp
IPlugin
PluginApp

Both MainAppand PluginAppconnect link IPlugin. Now, in MainApp, I scan the plugins folder and search for objects that implement the interface IPlugin.

However, it does not work, because both MainAppand PluginApplink to their own copy IPlugin.dll, so they are not recognized as a match when using Type.IsAssignableFrom()!

help?

+3
source share
1 answer

, , dll. , .


dll , DLL, , . , ?

, , . .


dll . dll, , dll, ?

+2
source

Source: https://habr.com/ru/post/1771793/


All Articles