“Visual Studio 集成包” vs “Visual Studio Add-in”:有什么区别?
为 Visual Studio 创建新扩展时,有两个项目选项:“Visual Studio Integration Package”和“Visual Studio Add-in”。 这两种项目类型之间有什么区别?您何时会使用其中一种而不是另一种?
When creating a new extension for visual studio, there are two project options: "Visual Studio Integration Package" and "Visual Studio Add-in". What is the difference between the two project types and when would you use one over the other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,您可以在此处找到完整的详细比较(有还链接到该系列的前几部分)。
但基本上,从 VS 的第一个版本开始,加载项就作为 VS 扩展类型提供,并构建为 COM 组件。 后来,发现这种方法存在一些局限性,因此创建了新的扩展功能——即 VS SDK 包。
也许,如果您正在构建 VS 2008+ 的扩展,您应该将 VS SDK 包作为更新的技术。 VS 包的另一个优点是与 Visual Studio 更好的集成。
您仍然可以考虑构建一个加载项;
Ok, you can find a full detailed comparison here (there are also links to the previous parts in the series).
But basically, add-ins were available as the VS extension type from the very first versions of the VS and built as the COM components. Later on, some limitations were discovered in that approach, so the new extensibility feature was created -- namely VS SDK package.
Probably, if you are building an extension for VS 2008+ you should target the VS SDK package as the newer technology. Another strong point of the VS package is better integration with the Visual Studio.
You still might consider building an add-in, if
关于 Visual Studio 插件与包的重要一点,插件在 VS 2013 中已弃用,并且在 VS“14”中不可用
Visual Studio 2013 中已弃用的加载项
Visual Studio " 14" CTP:加载项已消失
来自 的“官方”指南如何:创建加载项 是“Visual Studio 加载项在 Visual Studio 2013 中已弃用。您应该将加载项升级到 VSPackage 扩展...”
Important point on Visual Studio Add-in vs Package, Add-ins are deprecated in VS 2013 and will not be available in VS "14"
Add-ins Deprecated in Visual Studio 2013
Visual Studio "14" CTP: add-ins are gone
"Official" guidance from How to: Create an Add-In is "Visual Studio add-ins are deprecated in Visual Studio 2013. You should upgrade your add-ins to VSPackage extensions...."
集成包是您开始新项目时可以选择的东西(就像您选择 C# 或 VB 一样)。
请参阅http://www.bitwisemag.com/copy/features/dev /visual_studio/vs2005_integration_1.html。
加载项的工作方式与 MS Office 应用程序类似。 您可以添加自己的自定义按钮和菜单项。 这是一个示例: http://www.c-sharpcorner.com /UploadFile/mgold/AddIns11292005015631AM/AddIns.aspx。
An integration package is something that can be chosen when you start a new project (like how you pick C# or VB).
See http://www.bitwisemag.com/copy/features/dev/visual_studio/vs2005_integration_1.html.
Add-ins work just like they would for MS Office applications. You can add your own custom buttons and menu items. Here is an example: http://www.c-sharpcorner.com/UploadFile/mgold/AddIns11292005015631AM/AddIns.aspx.