部署和发布 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.
集中部署Centralized Deployment 在云或混合部署中,使用 Office 365 管理中心将加载项分发给组织中的用户。In a cloud or hybrid deployment, to distribute your add-in to users in your organization by using the Office 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.
网络共享Network share 在网络上的 Windows 计算机中(要在其中托管加载项),转到要用作共享文件夹目录的文件夹的父文件夹或驱动器号。On a Windows computer on a network where you want to host your add-in, go to the parent folder, or drive letter, of the folder you want to use as your shared folder catalog.

备注

如果您计划将加载项发布到 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.例如,若要通过验证,您的外接程序必须在支持您定义的方法的所有平台上工作(有关详细信息,请参阅section 1120.3Office 外接程序主机和可用性页面)。 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 host and availability page).

Office 主机提供的部署选项Deployment options by Office host

可用的部署选项具体取决于你定位的 Office 主机以及所创建的加载项的类型。The deployment options that are available depend on the Office host 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 Office 365 管理中心Office 365 admin center AppSourceAppSource SharePoint 目录*SharePoint catalog*
内容Content XX XX XX XX
任务窗格Task pane XX XX XX XX
命令Command 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

部署方法Deployment methods

以下各节提供了有关向组织中的用户分发 Office 加载项的最常用部署方法的其他信息。The following sections provide additional information about the deployment methods that are most commonly used to distribute 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.

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

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

有关详细信息,请参阅通过 Office 365 管理中心进行集中部署来发布 Office 加载项For more information, see Publish Office Add-ins using Centralized Deployment via the Office 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:

  • Office 365、Exchange Online 或 Exchange Server 2013 或更高版本Office 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