字preSS像插件框架ASP.NET中 [英] Wordpress like Plugin Framework in ASP.NET
问题描述
我正在开发一个CMS和我想有一个框架,以便任何人都可以插件像字preSS了。
I am developing a CMS and I want to have a framework so anyone can plugin for it like the wordpress has.
我来许多解决方案,但他们都不是有帮助的。
I come to many solution but they are not that helpful.
谁能告诉我一个很好的解决方案......
Can anyone tell me a good solution...
感谢
推荐答案
我可能会通过(看托管扩展框架的 HTTP://www.$c$cplex.com/MEF )。它的设计是建立在一个方式,是在不同的应用程序是一致的(基本上,所以你不必了解每个应用程序是如何做的是插件)插件的框架。它是,事实上,Visual Studio 2010中使用,用于创建插件的方法。
I would probably start by looking at the Managed Extensibility Framework (http://www.codeplex.com/MEF). It is designed to be an framework to build plug-ins in a way that is consistent across different applications (basically so you don't have to understand how each app does it's plug-ins). It is, in fact, the method that Visual Studio 2010 is using for creating plug-ins.
出它给你一些不错的功能,如监测目录的新插件和跟踪依赖盒子。它仍然是由你来设计所需要的人,为你的系统创建插件接口/合同,但需要繁重的工作出来的。
Out of the box it gives you some nice features like monitoring directories for new plug-ins, and tracking dependencies. It is still up to you to design the interfaces/contracts needed for people to create plug-ins for your system, but it takes the grunt work out of it.
这篇关于字preSS像插件框架ASP.NET中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!