VSTO vs. Primary Interop Assemblies, what's the difference?

人走茶凉 提交于 2019-11-30 08:55:56

VSTO is the application runtime that provides hooks (solution loader) into the Office subsystem via PIA. PIAs are wrappers around the unmanaged COM API (IDTExtensibility2) that Office is built from. PIAs provide managed access and run above the VSTO runtime.

VSTO comes with project types that build the deployment manifest required for detecting dependencies and loading your Add-In at runtime.

The PIAs provide managed access to the COM object-model, but it also supports unmanaged access should you want more control over how your solution is loaded (hence you always have VSTO runtime, but not always PIAs).

This MSDN link provides a great overview of the evolution of PIAs and VSTO away from IDtExtensibility2 which is another loading option (outside of PIAs)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!