问题描述
的区别加载项和集成包仍不清楚,现在在 Visual Studio 2010 中,扩展管理器与加载项管理器一起出现.
The difference between Add-In and Integration Package is still unclear and now with Visual Studio 2010 an extension manager appears along with the add-in manager.
- 插件管理器和扩展管理器之间有什么区别?
- 加载项可以同时在两个管理器中吗?
推荐答案
加载项实现 可扩展性接口,最初是为 Visual Studio.Net 创建的,用于自定义和自动化 IDE.Visual Studio 2002/2003/2005/2008/2010 支持这些插件.
Add-ins implement an extensibility interface that was first created for Visual Studio.Net for customizing and automating the IDE. These add-ins are supported in Visual Studio 2002/2003/2005/2008/2010.
扩展是 MEF 组件,通常不实现插件接口.Visual Studio 2010 是第一个支持 MEF 组件的 Visual Studio 版本.
Extensions are MEF components and do not normally implement the Add-in interface. Visual Studio 2010 is the first version of Visual Studio to support MEF components.
只有插件出现在插件管理器中.扩展管理器中只显示扩展.
Only Add-ins appear in the Add-in Manager. Only Extensions appear in the Extension Manager.
我不知道 Visual Studio 是否也可以将 MEF 扩展作为加载项加载,但确实没有太多理由发生这种情况.扩展可以使用插件 DTE 接口,而无需实际作为插件加载.
I don't know if an MEF extension could also be loaded by Visual Studio as an add-in, but there's really not much reason that to happen. An extension can use the add-in DTE interfaces without actually being loaded as an add-in.
这篇关于Visual Studio 2010 加载项管理器和扩展管理器之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!