部署和发布 Office 加载项Deploy and publish Office Add-ins

可以使用几种方法之一来部署 Office 外接程序,以用于对用户进行测试或分发:You can use one of several methods to deploy your Office Add-in for testing or distribution to users.

方法Method Use...Use...
旁加载Sideloading 在开发过程中测试在 Windows、iPad、Mac 或浏览器中运行的加载项。As part of your development process, to test your add-in running on Windows, iPad, Mac, or in a browser. (不适用于生产版加载项。)(Not for production add-ins.)
网络共享Network share 作为开发过程的一部分,用于在将加载项发布到本地主机以外的服务器后,测试在 Windows 上运行的加载项。As part of your development process, to test your add-in running on Windows after you have published the add-in to a server other than localhost. (不适用于生产版加载项,也不适用于在 iPad、Mac 或 Web 上进行测试。)(Not for production add-ins or for testing on iPad, Mac, or the web.)
集中部署Centralized Deployment 在云部署中,使用 Microsoft 365 管理中心将加载项分发给组织中的用户。In a cloud deployment, to distribute your add-in to users in your organization by using the Microsoft 365 admin center.
SharePoint 目录SharePoint catalog 在本地环境中,用于向组织用户分发加载项。In an on-premises environment, to distribute your add-in to users in your organization.
AppSourceAppSource 用于向用户公开分发加载项。To distribute your add-in publicly to users.
Exchange 服务器Exchange server 在本地或在线环境中,用于向用户分发 Outlook 加载项。In an on-premises or online environment, to distribute Outlook add-ins to users.

备注

如果你计划将加载项发布到 AppSource,并使其在 Office 体验中可用,请确保你遵守商业市场认证政策If you plan to publish your add-in to AppSource and make it available within the Office experience, make sure that you conform to the Commercial marketplace certification policies.例如,加载项必须适用于支持你定义的方法的所有平台,才能通过验证(有关详细信息,请参阅第 1120.3 部分以及 Office 加载项应用程序和可用性页)。 For example, to pass validation, your add-in must work across all platforms that support the methods that you define (for more information, see section 1120.3 and the Office Add-in application and availability page).

按 Office 应用程序和加载项类型划分的部署选项Deployment options by Office application and add-in type

可用的部署选项具体取决于你面向的 Office 应用程序以及所创建的加载项的类型。The deployment options that are available depend on the Office application that you're targeting and the type of add-in you create.

Word、Excel 和 PowerPoint 加载项的部署选项Deployment options for Word, Excel, and PowerPoint add-ins

扩展点Extension point 旁加载Sideloading 网络共享Network share Microsoft 365 管理中心Microsoft 365 admin center AppSourceAppSource SharePoint 目录*SharePoint catalog*
内容Content XX XX XX XX XX
任务窗格Task pane XX XX XX XX XX
命令Command XX XX XX XX

* SharePoint 目录不支持 Mac 版 Office。* SharePoint catalogs do not support Office on Mac.

Outlook 加载项的部署选项Deployment options for Outlook add-ins

扩展点Extension point 旁加载Sideloading Exchange 服务器Exchange server AppSourceAppSource
邮件应用Mail app XX XX XX
命令Command XX XX XX

产品部署方法Production deployment methods

以下各部分提供了有关向组织中的用户分发生产版 Office 加载项的最常用部署方法的其他信息。The following sections provide additional information about the deployment methods that are most commonly used to distribute production Office Add-ins to users within an organization.

有关最终用户如何获取、插入和运行加载项的信息,请参阅开始使用 Office 加载项For information about how end users acquire, insert, and run add-ins, see Start using your Office Add-in.

通过 Microsoft 365 管理中心进行集中部署Centralized Deployment via the Microsoft 365 admin center

通过 Microsoft 365 管理中心,管理员可以为组织中的用户和组轻松部署 Office 加载项。The Microsoft 365 admin center makes it easy for an administrator to deploy Office Add-ins to users and groups in their organization. 通过管理中心部署加载项后,用户可立即在其 Office 应用程序中使用此加载项,而无需进行客户端配置。Add-ins deployed via the admin center are available to users in their Office applications right away, with no client configuration required. 可以通过集中部署来部署内部加载项以及 ISV 提供的加载项。You can use Centralized Deployment to deploy internal add-ins as well as add-ins provided by ISVs.

有关详细信息,请参阅通过 Microsoft 365 管理中心进行集中部署来发布 Office 加载项For more information, see Publish Office Add-ins using Centralized Deployment via the Microsoft 365 admin center.

SharePoint 应用目录部署SharePoint app catalog deployment

SharePoint 应用目录是特殊网站集,创建后可用于托管 Word、Excel 和 PowerPoint 加载项。由于 SharePoint 目录不支持在清单的 VersionOverrides 节点中实现的新加载项功能(包括加载项命令),因此建议尽可能通过管理中心进行集中部署。通过 SharePoint 目录部署的加载项命令默认在任务窗格中打开。A SharePoint app catalog is a special site collection that you can create to host Word, Excel, and PowerPoint add-ins. Because SharePoint catalogs don't support new add-in features implemented in the VersionOverrides node of the manifest, including add-in commands, we recommend that you use Centralized Deployment via the admin center if possible. Add-in commands deployed via a SharePoint catalog open in a task pane by default.

如果要在本地环境中部署外接程序,请使用 SharePoint 目录。有关详细信息,请参阅将任务窗格和内容外接程序发布到 SharePoint 目录If you are deploying add-ins in an on-premises environment, use a SharePoint catalog. For details, see Publish task pane and content add-ins to a SharePoint catalog.

备注

SharePoint 目录不支持 Mac 版 Office。SharePoint catalogs do not support Office on Mac. 若要向 Mac 客户端部署 Office 加载项,必须将其提交到 AppSourceTo deploy Office Add-ins to Mac clients, you must submit them to AppSource.

Outlook 加载项部署Outlook add-in deployment

对于不使用 Azure AD 标识服务的本地和联机环境,可以通过 Exchange 服务器部署 Outlook 外接程序。For on-premises and online environments that do not use the Azure AD identity service, you can deploy Outlook add-ins via the Exchange server.

Outlook 外接程序部署需要以下内容:Outlook add-in deployment requires:

  • Microsoft 365、Exchange Online 或 Exchange Server 2013 或更高版本Microsoft 365, Exchange Online, or Exchange Server 2013 or later
  • Outlook 2013 或更高版本Outlook 2013 or later

若要将加载项分配给租户,请使用 Exchange 管理中心通过文件或 URL 直接上传清单,或从 AppSource 添加加载项。若要将加载项分配给单个用户,必须使用 Exchange PowerShell。有关详细信息,请参阅 TechNet 上的为组织安装或删除 Outlook 加载项To assign add-ins to tenants, you use the Exchange admin center to upload a manifest directly, either from a file or a URL, or add an add-in from AppSource. To assign add-ins to individual users, you must use Exchange PowerShell. For details, see Install or remove Outlook add-ins for your organization on TechNet.

另请参阅See also