类似于.NET Framework 2.0的MEF(托管扩展性框架)

时间:2021-12-04 16:05:55

I used MEF in own of my projects and I liked it a lot. It was easy and after figuring our awkward API model, it just worked.

我在自己的项目中使用了MEF,我非常喜欢它。很容易,在弄清楚我们笨拙的API模型之后,它才起作用。

Now I need something like that for .NET Framework 2.0. Is there any similar project out there which can work under .NET Framework 2.0?

现在我需要.NET Framework 2.0这样的东西。是否有任何类似的项目可以在.NET Framework 2.0下运行?

I'm simply looking for adding plug-in support to my project in a simple way.

我只是想以简单的方式为我的项目添加插件支持。

4 个解决方案

#1


Have a look at Mono.Addins AFAIK its built upon .NET 2.0.

看一下基于.NET 2.0的Mono.Addins AFAIK。

#2


You can try R.SAT

你可以试试R.SAT

#3


I know SharpDevelop has a plug-in mechanism. Maybe you could check out their source code: http://www.icsharpcode.net/OpenSource/SD/

我知道SharpDevelop有一个插件机制。也许您可以查看他们的源代码:http://www.icsharpcode.net/OpenSource/SD/

#4


I think the closest thing is the System.Addins namespace but that is a 3.5 feature. It doesn't require a different CLR than 2.0 but it does require the 3.5 framework be installed on the target machine.

我认为最接近的是System.Addins命名空间,但这是一个3.5功能。它不需要与2.0不同的CLR,但它确实需要在目标机器上安装3.5框架。

http://www.codeplex.com/clraddins

#1


Have a look at Mono.Addins AFAIK its built upon .NET 2.0.

看一下基于.NET 2.0的Mono.Addins AFAIK。

#2


You can try R.SAT

你可以试试R.SAT

#3


I know SharpDevelop has a plug-in mechanism. Maybe you could check out their source code: http://www.icsharpcode.net/OpenSource/SD/

我知道SharpDevelop有一个插件机制。也许您可以查看他们的源代码:http://www.icsharpcode.net/OpenSource/SD/

#4


I think the closest thing is the System.Addins namespace but that is a 3.5 feature. It doesn't require a different CLR than 2.0 but it does require the 3.5 framework be installed on the target machine.

我认为最接近的是System.Addins命名空间,但这是一个3.5功能。它不需要与2.0不同的CLR,但它确实需要在目标机器上安装3.5框架。

http://www.codeplex.com/clraddins