Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现 .net 插件架构非常复杂,无法用作插件平台。我认为对于第 3 位编码人员的开发来说,插件接口需要很简单。
你知道/使用/等一些更简单有效的插件技术吗?更准确地说,假设我们将开发一个像记事本这样的文本编辑器,它需要(通过示例)用于不同语法高亮、界面更改、shell 集成等的插件。
你会使用内置的 .net 插件代码,还是会构建/使用一些不同的代码?
看看MEF。它正是为此而设计的,而且使用起来非常简单。
任何 IoC 框架 + 一些动态程序集加载。