使用 System.Addin (MAF) 的 C# 源代码示例?

发布于 2024-07-26 19:32:39 字数 143 浏览 2 评论 0原文

就像看看别人如何使用MAF:

  • 什么是合约定义?
  • 一起使用 IoC 和 MAF?
  • 插件之间如何通信?
  • MAF 如何帮助构建 winforms 应用程序? ...

Just like to see how others make use of MAF:

  • What are to define as contracts?
  • Using IoC and MAF together?
  • How do addins communicate with each other?
  • How does MAF help building a winforms application?
    ...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故人的歌 2024-08-02 19:32:39

正如评论中已经暗示的那样,面对更易于使用的改进 API,System.AddIn 在很大程度上被认为已过时。 它位于 System.ComponentModel.Composition 中,通常称为 MEF(托管扩展性框架的缩写)。 我建议您跳过 MAF 并直接跳到使用 MEF。

FWIW,Visual Studio 2010 使用 MEF 动态扩展 UI,既适用于 VS 附带的功能,也适用于第三方提供的扩展。

As has already been hinted in the comments, System.AddIn is largely considered obsolete in the face of a revamped API that is much easier to use. This resides in System.ComponentModel.Composition and is popularly known as MEF (short for Managed Extensibility Framework). I'd advise you to skip MAF and skip directly to using MEF.

FWIW, Visual Studio 2010 uses MEF to dynamically extend the UI, both for features shipping with VS and for extensions provided by 3rd parties.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文