利用应用程序目录为 SharePoint 环境提供自定义商业应用程序Use the App Catalog to make custom business apps available for your SharePoint environment

作为 Microsoft 365 中的 SharePoint 或全局管理员,您可以创建应用程序目录网站,以便用户在浏览 "网站内容" 页上的 "从组织中筛选" 下的应用程序时可以安装内部开发的自定义应用程序。As a SharePoint or global admin in Microsoft 365, you can create an App Catalog site to make internally developed custom apps available for users to install when they browse apps under the From Your Organization filter on the Site Contents page. 然后,网站所有者可以添加这些应用程序,以使用特定功能自定义网站或显示信息。Site owners can then add these apps to customize sites with specific functionality or to display information.

在创建应用程序目录网站后,您可以使用它上传您的组织开发的任何自定义应用程序。After the App Catalog site has been created, you can use it to upload any custom apps that your organization has developed. 上载自定义应用程序要比将文档上载到库并设置某些属性复杂得多。Uploading custom apps isn't much more complicated than uploading a document to a library and setting some properties. 您可以使用应用程序目录网站执行某些操作,例如,在网站上安装自定义或第三方应用程序(也称为应用程序部署)。You can use the App Catalog site to do things like install custom or third-party apps on sites for users (also called app deployment). 您还可以管理来自用户的应用程序请求。You can also manage app requests from users.

有关开发自定义 SharePoint 自定义应用程序的选项的详细信息,请参阅:生成 sharepoint 相关应用程序和 Sharepoint相关应用程序与 sharepoint 解决方案相比较For more information about your options for developing custom apps for SharePoint, see: Build apps for SharePoint and Apps for SharePoint compared with SharePoint solutions.

步骤1:创建应用程序目录网站集Step 1: Create the App Catalog site collection

第一步是创建应用程序目录网站集(如果尚未创建)。The first step is to create the App Catalog site collection if it hasn't already been created.

即使您不打算让内部自定义应用程序可用,但在创建应用程序目录网站集之前,您将无法执行更改 SharePoint 应用商店的购买设置等操作。Even if you don't plan to make internal custom apps available, you will not be able to do things like change the purchase settings for the SharePoint Store until you create the App Catalog site collection. 您的组织只能有一个应用程序目录网站集,并且只需创建一次。You can have only one App Catalog site collection for your organization, and you only need to create it once.

  1. 转到新的 SharePoint 管理中心的“更多功能”页面,然后使用在组织中具有管理员权限的帐户进行登录。Go to the More features page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.

备注

如果使用的是 Office 365 Germany,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“更多功能”页面。 If you have Office 365 Germany, sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the More features page.
如果使用的是由世纪互联(中国)运营的 Office 365,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“更多功能”页面。If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the More features page.

  1. 在 "应用" 下,选择 "打开"。Under Apps, select Open.

  2. 选择 "应用程序目录"。Select App Catalog.

  3. 如果应用程序目录网站未打开,请选择 "新建应用程序目录网站",然后选择 "确定"If the App Catalog site doesn't open, select Create a new app catalog site, and then select OK.

    选定了 "新建应用程序目录" 网站的 "应用程序目录网站" 对话框。

  4. 在 "创建应用程序目录网站集" 页上,输入所需的信息,然后选择 "确定"On the Create App Catalog Site Collection page, enter the required info, and then select OK.

    "创建应用程序目录" 对话框

步骤2:向应用程序目录网站添加自定义应用程序Step 2: Add custom apps to the App Catalog site

若要在应用程序目录网站创建后访问它,请按照上一节中的步骤1和步骤2操作。To get to the App Catalog site once it's been created, follow steps 1 and 2 in the previous section. 可能需要一些时间才能显示该网站。The site may take a little time to appear. 应用程序目录网站将包含一个用于 Office 相关应用程序的文档库和一个用于 SharePoint 相关应用程序的文档库,以及一个跟踪来自网站用户的应用程序请求的列表。The App Catalog site will have a document library for Apps for Office and a document library for Apps for SharePoint, as well as a list that tracks App Requests from site users.

应用程序目录网站的主页。

  1. 应用程序目录网站的主页上,选择标有 "分发 SharePoint 相关应用程序" 或 "分发 Office 相关应用程序" 的图块,具体取决于要上载的应用类型。On the home page of the App Catalog site, select the tile labeled either Distribute apps for SharePoint or Distribute apps for Office, depending on which type of app you are uploading.

    您的应用程序目录入门图磁贴,并突出显示了 SharePoint 的分布应用程序。

  2. 选择 "新建",然后浏览到要上载的应用程序,或将应用程序拖动到库中。Select New, and browse to the app you want upload, or drag the app into the library.

    应用程序目录中的 "新建" 按钮。

    备注

    根据应用程序提供的功能,开发人员可以设置允许您将应用程序提供给组织中的所有网站的标志。Depending on the functionality that the app provides, the developer can set a flag that allows you to make the app available to all sites in the organization. 如果应用程序建立了一些内容(例如,创建一个新列表),则不能使其对所有网站可用,并将需要按照 "部署自定义应用程序" 下一节中所述进行部署。If the app builds something (for example, it creates a new list), you can't make it available to all sites and will need to deploy it as described in the next section under "Deploy a custom app." 我们始终建议在更广泛地部署之前测试解决方案。We always recommend testing solutions before deploying them more broadly. 如果您在上载应用程序时出现 "信任" 对话框,而您希望将该应用程序提供给组织中的所有网站,请选择 "使此解决方案可供组织中的所有网站使用",然后单击 "部署"。If the "Do you trust" dialog appears when you upload the app, and you want to make the app available to all sites in your organization, select Make this solution available to all sites in the organization, and then click Deploy.

  3. 若要帮助网站所有者识别和使用应用程序,请右键单击它,然后选择 "属性"。To help site owners identify and use the app, right-click it, and then select Properties.

    选择了应用程序的 SharePoint 应用程序目录应用程序

  4. 在 "属性" 对话框窗体中,您可以更改应用程序的名称,并输入可选信息,如说明、图像、类别、发布服务器和支持 URL。In the properties dialog form, you can change the Name for the app and enter optional information like a description, images, category, publisher, and support URL. 按照屏幕上的说明进行操作,如图像大小的详细信息。Follow the instructions on the screen for details like image size.

  5. 确保已选中 "已启用" 复选框,以便用户能够将此应用程序添加到网站。Make sure the Enabled check box is selected so that users are able to add this app to sites.

  6. 如果显示,请在 "托管许可证" 框中,指定您认为将需要的许可证数量。If it appears, in the Hosting Licenses box, specify the number of licenses you think you will need.

  7. 选择“保存”。Select Save.

备注

如果您想让第三方应用程序可供用户查找和安装,您只需为其购买网站许可证即可。If you want to make third-party apps available for users to find and install, you simply need to buy a site license for them. 当您从 SharePoint 商店购买第三方应用程序的网站许可证时,应用程序将自动显示在可以添加的应用程序下。When you buy a site license for a third-party app from the SharePoint store, the apps will automatically display under Apps You Can Add.

步骤3(可选):为用户安装应用程序Step 3 (optional): Install an app for users

如果您希望所有用户都使用某个应用程序,则可以将其部署到特定的网站集、管理路径或网站模板。If you want all users to use an app, you can deploy it to specific site collections, managed paths, or site templates. 部署应用程序基本上会在网站上安装该应用程序以供用户使用。Deploying an app essentially installs that app on a site for users so that is available for use. 部署的应用程序将显示在网站的 "网站内容" 页上。Deployed apps appear on the Site Contents page for a site.

您可以部署第三方应用程序,也可以部署自定义应用程序You can deploy a third-party app, or you can deploy a custom app.

备注

此选项仅适用于 SharePoint 外接程序。若要查看适用于 SharePoint 框架解决方案的租户范围的部署选项,请参阅适用于 Sharepoint 框架解决方案的租户范围的解决方案部署This option is only available for SharePoint add-ins. To see tenant-scoped deployment options for SharePoint Framework solutions, see Tenant-scoped solution deployment for SharePoint Framework solutions.

部署第三方应用程序Deploy a third-party app

如果您为第三方应用程序购买网站许可证,则在用户浏览可添加的应用程序下的应用程序时,该应用程序将自动供用户安装。If you buy a site license for a third-party app, then that app is automatically available for users to install when they browse apps under Apps You Can Add.

可突出显示应用程序的应用程序添加对话框

但是,如果您希望应用程序可供使用,而无需用户进行查找和安装,则可以部署它。However, if you want to make the app available for use without requiring users to find and install it, you can deploy it.

  1. 如果尚未购买应用,则必须先进行购买。If you have not already purchased the app, you must buy it first. 有关如何执行此操作的信息,请参阅从 SharePoint 应用商店购买应用程序For info about how to do this, see Buy an app from the SharePoint Store.

  2. 应用程序目录网站上,选择 "设置  Microsoft 365 设置 " 按钮,然后选择 "添加应用程序"。On the App Catalog site, select SettingsMicrosoft 365 Settings button, and then select Add an app.

  3. 选择要添加的应用程序,并在出现提示时选择 "信任它"。Select the app you want to add, and when prompted, select Trust It.

    您是否信任应用程序对话框选择了 "信任"

  4. 在 "网站内容" 页上,找到要部署的应用程序。On the Site Contents page, find the app you want to deploy.

  5. 选择应用程序旁边的 "..." (省略号图标),并在标注中再次选择 " ..." (省略号图标),然后选择 "部署"。Select ... (ellipses icon) next to the app, and to view the menu, select ... (ellipses icon) again in the callout, and then select Deployment. (对于某些应用程序,"部署" 命令可能出现在第一个标注上。)(For some apps, the Deployment command may appear on the first callout.)

    在应用程序目录网站上的应用程序的 properties 标注中提供了 "部署" 命令。

  6. 在 "管理应用程序部署" 页面上,输入要将应用程序部署到的每个网站集的 URL,并将其添加到列表中,选择 "添加"。On the Manage App Deployments page, enter the URL for each site collections to which you want to deploy the app, and to add it to the list, select Add .

  7. 在 "管理路径" 部分中,若要指定应使用此应用程序的托管路径,请选择 "添加"。In the Managed Paths section, to specify which managed paths should have this app available, select Add.

  8. 在 "网站模板" 部分中,若要指定应使用此应用程序的网站模板,请选择 "添加"。In the Site Templates section, to specify which site templates should have this app available, select Add.

  9. 选择“确定”。Select OK.

  10. 如果系统提示您信任该应用程序,请选择 "信任它"。If you are prompted to Trust the app, select Trust It.

部署自定义应用程序 Deploy a custom app

如果将自定义应用程序上载到应用程序目录,则用户可以在浏览组织下的应用程序时自动使用该应用程序进行安装。If you upload a custom app to the App Catalog, it is automatically available for users to install when they browse apps under From Your Organization. 如果希望应用程序可供使用,而不需要网站用户安装它,则可以部署它。If you want you want the app to be available for use without the need for site users to install it, you can deploy it.

  1. 必须先将自定义应用程序上传到应用程序目录网站,然后才能部署自定义应用程序。Before you can deploy a custom app, you must first upload it to the App Catalog site. 有关如何执行此操作的分步指南,请参阅上一节:第2步:将自定义应用程序添加到应用程序目录网站For step-by-step guidance about how to do this, see the previous section, Step 2: Add custom apps to the App Catalog site.

  2. 上载应用程序后,必须将其作为应用程序添加到应用程序目录网站,以使其显示在应用程序目录本身的 "网站内容" 页上。After you have uploaded the app, you then must add it as an app to the App Catalog site so that it appears on the Site Contents page for the App Catalog itself. 在应用程序目录网站上,转到 "设置  Microsoft 365 设置" 按钮 ,然后单击 "添加应用程序"。On the App Catalog site, go to SettingsMicrosoft 365 Settings button and then click Add an app.

  3. 选择要添加的应用程序,并在出现提示时选择 "信任它"。Select the app you want to add, and when prompted, select Trust It.

    将其突出显示为 "信任它" 按钮

  4. 在 "网站内容" 页上,找到要部署的应用程序。On the Site Contents page, find the app you want to deploy.

  5. 在该应用程序的旁边,选择 " ... " (省略号图标),然后查看该菜单中的 "..." (省略号图标),然后选择 "部署"。Next to the app, select ... (ellipses icon), and to view the menu, select ... (ellipses icon) again in the callout, and then select Deployment. (对于某些应用程序,"部署" 命令可能出现在第一个标注上。)(For some apps the Deployment command may appear on the first callout.)

    在应用程序目录网站上的应用程序的 properties 标注中提供了 "部署" 命令。

  6. 在 "管理应用程序部署" 页面上,输入要将应用程序部署到的每个网站集的 URL,并将其添加到列表中,选择 "添加"。On the Manage App Deployments page, enter the URL for each site collections to which you want to deploy the app, and to add it to the list, select Add.

  7. 在 "管理路径" 部分中,若要指定应使用此应用程序的托管路径,请选择 "添加"。In the Managed Paths section, to specify which managed paths should have this app available, select Add.

  8. 在 "网站模板" 部分中,若要指定应使用此应用程序的网站模板,请选择 "添加"。In the Site Templates section, to specify which site templates should have this app available, select Add.

  9. 选择“确定”。Select OK.

  10. 如果系统提示您信任该应用程序,请选择 "信任它"。If you are prompted to Trust the app, select Trust It.

    备注

    最长可能需要30分钟才能部署应用。It may take up to 30 minutes for an app to deploy.
    如果将向文档库或列表的项目标注添加命令的应用程序部署,则用户可以看到这些命令。If you deploy an app that adds commands to the item callout for document libraries or lists, then those commands are visible to users. 但是,如果部署的应用程序具有自定义功能区控件或应用程序部件的功能,则可能需要执行其他步骤,才能显示应用程序的用户界面命令。However, if you deploy an app that features custom ribbon controls or an App Part, additional steps may be required to make the user interface commands for the app appear.

从应用程序目录中删除应用程序Remove an app from the App Catalog

如果您不再希望某个特定的应用程序可供用户安装,则可以从应用程序目录中删除该应用程序。If you no longer want a specific app to be available for users to install, you can remove it from the App Catalog. 用户已添加到网站的应用程序的任何实例都将保留,但该应用程序将不再可供用户添加到其他网站。Any instances of the app that have already been added to sites by users will remain, but the app will no longer be available for users to add to additional sites.

  1. 应用程序目录网站上,选择 " SharePoint 相关应用程序" 列表。On the App Catalog site, select the Apps for SharePoint list.

  2. 右键单击要删除的应用程序,然后选择 "删除"。Right-click the app that you want to remove, and select Delete.

  3. 在对话框中,若要确认要将项目发送到网站回收站,请选择 "确定"In the dialog, to confirm that you want to send the item to the site Recycle Bin, select OK.

另请参阅See also

配置 SharePoint Store 的设置Configure settings for the SharePoint Store

管理 SharePoint 环境的应用程序许可证Manage app licenses for a SharePoint environment

监视 SharePoint 环境的应用程序Monitor apps for your SharePoint environment

向网站添加应用程序Add an app to a site