分发 Microsoft.Office.Tools Dll 和 Office 插件

Distributing Microsoft.Office.Tools Dlls along with Office addins

我编写了 C# Office 加载项,我通过将它们连同它们的程序集依赖项(Microsoft.Office.Tools.Common.v4.0.Utilities.dllMicrosoft.Office.Tools.Outlook.v4.0.Utilities.dll)一起分发并为加载项设置正确的注册表项来手动安装它们插件

我只是想确认将这两个 Microsoft DLL 与我的加载项一起分发没有法律限制?

简短的回答是肯定的,您可以重新分发 Microsoft Office 主要互操作程序集 (PIA)。使用 Microsoft Office 开发的解决方案越多,销售的 Office 副本就越多。您可以在其中一个向导页面上安装 PIA 时找到 EULA。

下图中是 Microsoft Office 2010 的 EULA:

您也可以采用不同的方式,不需要重新分发 PIA。以下是 Microsoft Documentation 的摘录:

If the project targets the .NET Framework 4 or later, the Embed Interop Types property for the assembly reference is set to True by default. By using this setting, your solution does not require the PIA on end-user computers.