如何使用.NET 3.0 中的插件框架?
.NET 3.0 有一些关于如何为您自己的应用程序创建和使用加载项的更新。 我读到了一些您必须为加载项和主机应用程序之间的通信创建的“管道”,但找不到有关它的更多信息。
您将如何使用 .NET 3.0/3.5 在应用程序中创建加载项功能?
必要时提供其他信息:主机应用程序是使用 WPF 和一些常规功能制作的。 每个加载项都应将自己的寄存器选项卡添加到给定容器,其中包含自己的内容(按钮、文本字段等)和扩展主机应用程序的方法。
There are some updates with .NET 3.0 concerning how to create and use add-ins for your own applications. I read about some "pipeline" you have to create for the communication between add-in and host-application but couldn't find further information about it.
How would you made an add-in functionality in an application with .NET 3.0/3.5?
Additional information if necessary: The host application is made with WPF and some general functionality. Each add-in should add a own register-tab to a given container with their own content (buttons, textfields, ...) and methods to extend the host-application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
除了 丹尼尔斯 codeplex 链接,Jason He 也有一个关于在开发 Paint.NET 时使用 System.AddIn 命名空间的精彩系列文章,从这里开始 -
http://blogs.msdn.com/zifengh/archive/2007/01/04/addin- model-in-paint-net-1-introduction.aspx
In addition to Daniels codeplex link, Jason He also has a nice wee series on using the System.AddIn namespace when developing Paint.NET starting here -
http://blogs.msdn.com/zifengh/archive/2007/01/04/addin-model-in-paint-net-1-introduction.aspx
请务必查看 www.codeplex.com/mef 上的托管可扩展性框架。 它是一个有助于创建可扩展应用程序的框架。 创建可插入应用程序时,它负责处理所有管道。
我目前正在撰写一系列文章,展示 mef 的基本功能,网址为 http://www .jenswinter.com/?tag=/mef。 但这些文章都是德文的。
您应该尝试的另一个框架是 CompositeWpf (fka Prism)。 它允许您创建复合 WPF 应用程序。 您的应用程序将由一个 shell 应用程序和多个连接在一起并挂接到 shell 中的模块项目组成。
Definitely check out the Managed Extensibility Framework at www.codeplex.com/mef. It's a framework that helps with creating extensible applications. It takes care of all the plumbing when creating a pluggable app.
I'm currently writing a series of articles that show the basic functionality of mef at http://www.jenswinter.com/?tag=/mef. But the articles are in German though.
Another framework you should give a try is the CompositeWpf (f.k.a. Prism). It let's you create composite WPF applications. Your app will consist of a shell app and several module projects that are wired together and hooked into the shell.
现在还提供托管扩展性框架 (www.codeplex.com/mef),它允许您利用丰富的插件平台。
您可能还会发现依赖注入与您可以使用的东西类似(Unity、StructureMap 仅举两例)。
您可以在依赖项注入框架之上创建一个插件平台,尽管像 MEF 这样的专用插件平台可能更容易实现。
There is also available now the Managed Extensibility Framework (www.codeplex.com/mef) which allows you to leverage a rich plugin platform.
You may also find that dependency injection is along the lines of something you could use (Unity, StructureMap to name just two).
You could create a plugin platform on top of a dependency injection framework, though a dedicated plugin platform like MEF will likely be easier to implement.