Table of contents
Collapse the table of content
Expand the table of content

TenantExtensions.DeployApplicationPackageToAppCatalog Method

SharePoint Dev Documents|Last Updated: 9/8/2017
1 Contributor

Adds a package to the tenants app catalog and by default deploys it if the package is a client side package (sppkg)

Assembly: OfficeDevPnP.Core.dll

This method is obsolete :Please use the DeployApplicationPackageToAppCatalog extension method on the Web class. This method will be removed in the October 2017 release.


public static ListItem DeployApplicationPackageToAppCatalog(this Tenant tenant, String spPkgName, String spPkgPath, Boolean autoDeploy = True, Boolean overwrite = True)



  Type: Microsoft.Online.SharePoint.TenantAdministration.Tenant
  Tenant to operate against


  Type: System.String
  Name of the package to upload (e.g. demo.sppkg)


  Type: System.String
  Path on the filesystem where this package is stored

(optional) autoDeploy

  Type: System.Boolean
  Automatically deploy the package, only applies to client side packages (sppkg)

(optional) overwrite

  Type: System.Boolean
  Overwrite the package if it was already listed in the app catalog

Return Value

Type: ListItem
The ListItem of the added package row

See also

© 2018 Microsoft