Writing C# Plugin System

前端 未结 3 1732
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 11:48

I\'m trying to write a plugin system to provide some extensibility to an application of mine so someone can write a plugin(s) for the application without touching the main a

3条回答
  •  北海茫月
    2020-11-27 12:33

    It sounds like you have a circular reference. You said your plugins reference Lab.Core.DLL, but you also say the plugins are loaded from Lab.Core.DLL.

    Am I misunderstanding what is happening here?

    EDIT: OK now that you have added your question to the question...

    You need to have Lab.Core.DLL accessible to the plugin being loaded since it is a dependency. Normally that would mean having it in the same directory or in the GAC.

    I suspect there are deeper design issues at play here, but this is your immediate problem.

提交回复
热议问题