{"id":1874,"date":"2020-05-25T10:32:40","date_gmt":"2020-05-25T09:32:40","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=1874"},"modified":"2020-07-17T11:51:51","modified_gmt":"2020-07-17T10:51:51","slug":"scripting-add-in-packages","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/","title":{"rendered":"Scripting Add-Ins for Deployment"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Scripting the creation of SharePoint add-in packages is pretty straight forward. As I found there to be not very many posts on this topic, I thought I&#8217;d share how I implemented it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To create and deploy is also easy from a developers box, all of this is achievable from inside Visual Studio.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of this post is to show how you would go about creating packages to be deployed on downstream environments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m not going to go into the creation of certificates or the add-in client id. I&#8217;m going to take it for granted that if you&#8217;ve got to this stage, you already know how to do all of that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lets say you have a solution with one add-in and related web and you want to be able to script the creation of the packages to your UA environment.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Configure Add-In Profile<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Visual Studio, right click the add-in project and choose Publish. From the Publish your add-in page, choose New from the current profile drop down.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"374\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-AddInProfile.png\" alt=\"\" class=\"wp-image-1880\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-AddInProfile.png 602w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-AddInProfile-300x186.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Populate the profile with the certificate details for the environment you&#8217;re wanting to package for and click Finish.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"493\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Save-AddInProfile.png\" alt=\"\" class=\"wp-image-1883\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Save-AddInProfile.png 584w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Save-AddInProfile-300x253.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Configure Remote Web Profile<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next we need to configure the web part of the profile. Locate the web project for your add-in and right click it and once again then choose  Publish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the top of the page that loads, click New to launch the <em>Pick a publish target<\/em> dialog. From there, select IIS, FTP, etc and then Create Profile.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"601\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-WebProfile.png\" alt=\"\" class=\"wp-image-1884\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-WebProfile.png 902w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-WebProfile-300x200.png 300w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-WebProfile-768x512.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change the <em>Publish method<\/em> to Web Deploy Package, then set a package location and the target web application path.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"282\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Set-CustomProfile.png\" alt=\"\" class=\"wp-image-1885\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Set-CustomProfile.png 685w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Set-CustomProfile-300x124.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click Next and choose the configuration profile for this build. Finally click save to complete the profile for this add-in and web.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the Solution Explorer pane, expand the Properties\\PublishProfiles folder within the web project. Here you&#8217;ll see the profile that you created above.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"150\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/CustomWebProfile.png\" alt=\"\" class=\"wp-image-1886\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/CustomWebProfile.png 317w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/CustomWebProfile-300x142.png 300w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you open this file, you&#8217;ll see all of the settings you entered for the add-in and web projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Scripting Package Creation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll be using msbuild to script the creation of the packages for the add-in<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n#Change to thefolder that contains the add-in project file\ncd &quot;C:\\location of the projects&quot;\n\n# Build and create the packages for the add-in and web\n&amp; &quot;C:\\path to msbuild\\msbuild&quot; \/t:addinproject.csproj \/p:IsPackaging=True \/p:DeployOnBuild=false \/property:Configuration=Release \/p:PublishDir=C:\\PublishFolder \/p:ActivePublishProfile=CustomProfile\n<\/pre><\/div>\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<figure class=\"wp-block-table\"><table><thead><tr><th>Property<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>IsPackaging<\/td><td>Set to True to create the packages after the build<\/td><\/tr><tr><td>DeployOnBuild<\/td><td>We don&#8217;t want to deploy anywhere during this process, so set this to False<\/td><\/tr><tr><td>Configuration<\/td><td>The solution configuration name<\/td><\/tr><tr><td>PublishDir<\/td><td>The location to publish the packages to.<br>If you set this to C:\\Packages\\AddIn msbuild will create a folder called C:\\Packages\\AddIn1.0.0.0<br>Basically it appends the version of the add-in the this path<\/td><\/tr><tr><td>ActivePublishProfile<\/td><td>The name of the publishing profile that you created previously<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Once packing has completed, go to the folder you provided for PublishDir above. Here you should see 6 files:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"174\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/PackageFiles.png\" alt=\"\" class=\"wp-image-1887\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/PackageFiles.png 344w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/PackageFiles-300x152.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you open the SetParameters.xml file you&#8217;ll see all the settings for the profile you targeted in the packaging process. This will be used when deploying with the web.deploy.cmd batch file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Deploy the Web Application<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To deploy the web site you&#8217;ll need Web Deploy installed. The latest version for this can be downloaded from <a rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\" href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=43717\" target=\"_blank\">here<\/a>, adding the location to the msdeploy.exe executable to the path environment variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To test run the deployment, similar to running a cmdlet with -whatif<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nMyAddIn.Web.Deploy.cmd \/T\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">To perform the deployment:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nMyAddIn.Web.Deploy.cmd \/Y\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">There are also parameters here to specify the username and password, lots of info in the deploy-readme.txt file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scripting the creation of SharePoint add-in packages is pretty straight forward. As I found there to be not very many posts on this topic, I thought I&#8217;d share how I implemented it. To create and deploy is also easy from &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[96,3],"tags":[94,21,98,93,100],"class_list":["post-1874","post","type-post","status-publish","format-standard","hentry","category-deployment","category-sharepoint","tag-add-in","tag-deployment","tag-packaging","tag-provider-hosted","tag-sp2019"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to script the creation of add-in packages and provider hosted webs\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Stu\"\/>\n\t<meta name=\"keywords\" content=\"sharepoint,sp,packaging,continuous integration,add-in package,app package,deployment\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Stuart Roberts on all things SharePoint |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Scripting Add-In Packages | Stuart Roberts on all things SharePoint\" \/>\n\t\t<meta property=\"og:description\" content=\"How to script the creation of add-in packages and provider hosted webs\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-25T09:32:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-07-17T10:51:51+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@SharePointStu\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Scripting Add-In Packages | Stuart Roberts on all things SharePoint\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to script the creation of add-in packages and provider hosted webs\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@SharePointStu\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#article\",\"name\":\"Scripting Add-In Packages | Stuart Roberts on all things SharePoint\",\"headline\":\"Scripting Add-Ins for Deployment\",\"author\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/Create-AddInProfile.png\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#articleImage\",\"width\":602,\"height\":374},\"datePublished\":\"2020-05-25T10:32:40+01:00\",\"dateModified\":\"2020-07-17T11:51:51+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#webpage\"},\"articleSection\":\"Deployment, SharePoint, Add-In, Deployment, Packaging, Provider-Hosted, SP2019\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.stuartroberts.net\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"position\":2,\"name\":\"SharePoint\",\"item\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#listItem\",\"name\":\"Scripting Add-Ins for Deployment\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#listItem\",\"position\":3,\"name\":\"Scripting Add-Ins for Deployment\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#webpage\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/\",\"name\":\"Scripting Add-In Packages | Stuart Roberts on all things SharePoint\",\"description\":\"How to script the creation of add-in packages and provider hosted webs\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2020\\\/05\\\/25\\\/scripting-add-in-packages\\\/#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2020-05-25T10:32:40+01:00\",\"dateModified\":\"2020-07-17T11:51:51+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#website\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/\",\"name\":\"Stuart Roberts on all things SharePoint\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Scripting Add-In Packages | Stuart Roberts on all things SharePoint","description":"How to script the creation of add-in packages and provider hosted webs","canonical_url":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/","robots":"max-image-preview:large","keywords":"sharepoint,sp,packaging,continuous integration,add-in package,app package,deployment","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#article","name":"Scripting Add-In Packages | Stuart Roberts on all things SharePoint","headline":"Scripting Add-Ins for Deployment","author":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"publisher":{"@id":"http:\/\/www.stuartroberts.net\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2020\/03\/Create-AddInProfile.png","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#articleImage","width":602,"height":374},"datePublished":"2020-05-25T10:32:40+01:00","dateModified":"2020-07-17T11:51:51+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#webpage"},"isPartOf":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#webpage"},"articleSection":"Deployment, SharePoint, Add-In, Deployment, Packaging, Provider-Hosted, SP2019"},{"@type":"BreadcrumbList","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/#listItem","position":1,"name":"Home","item":"http:\/\/www.stuartroberts.net\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","position":2,"name":"SharePoint","item":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#listItem","name":"Scripting Add-Ins for Deployment"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#listItem","position":3,"name":"Scripting Add-Ins for Deployment","previousItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}}]},{"@type":"Person","@id":"http:\/\/www.stuartroberts.net\/#person","name":"Stu","image":{"@type":"ImageObject","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"Person","@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author","url":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/","name":"Stu","image":{"@type":"ImageObject","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"WebPage","@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#webpage","url":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/","name":"Scripting Add-In Packages | Stuart Roberts on all things SharePoint","description":"How to script the creation of add-in packages and provider hosted webs","inLanguage":"en-GB","isPartOf":{"@id":"http:\/\/www.stuartroberts.net\/#website"},"breadcrumb":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/#breadcrumblist"},"author":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"creator":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"datePublished":"2020-05-25T10:32:40+01:00","dateModified":"2020-07-17T11:51:51+01:00"},{"@type":"WebSite","@id":"http:\/\/www.stuartroberts.net\/#website","url":"http:\/\/www.stuartroberts.net\/","name":"Stuart Roberts on all things SharePoint","inLanguage":"en-GB","publisher":{"@id":"http:\/\/www.stuartroberts.net\/#person"}}]},"og:locale":"en_GB","og:site_name":"Stuart Roberts on all things SharePoint |","og:type":"article","og:title":"Scripting Add-In Packages | Stuart Roberts on all things SharePoint","og:description":"How to script the creation of add-in packages and provider hosted webs","og:url":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/","article:published_time":"2020-05-25T09:32:40+00:00","article:modified_time":"2020-07-17T10:51:51+00:00","twitter:card":"summary","twitter:site":"@SharePointStu","twitter:title":"Scripting Add-In Packages | Stuart Roberts on all things SharePoint","twitter:description":"How to script the creation of add-in packages and provider hosted webs","twitter:creator":"@SharePointStu"},"aioseo_meta_data":{"post_id":"1874","title":"Scripting Add-In Packages | #site_title","description":"How to script the creation of add-in packages and provider hosted webs","keywords":[{"label":"SharePoint","value":"SharePoint"},{"label":"SP","value":"SP"},{"label":"Packaging","value":"Packaging"},{"label":"Continuous Integration","value":"Continuous Integration"},{"label":"add-in package","value":"add-in package"},{"label":"app package","value":"app package"}],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-08-03 13:44:05","updated":"2026-10-16 15:23:58","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.stuartroberts.net\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/\" title=\"SharePoint\">SharePoint<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tScripting Add-Ins for Deployment\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"http:\/\/www.stuartroberts.net\/"},{"label":"SharePoint","link":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/"},{"label":"Scripting Add-Ins for Deployment","link":"http:\/\/www.stuartroberts.net\/index.php\/2020\/05\/25\/scripting-add-in-packages\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=1874"}],"version-history":[{"count":7,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1874\/revisions"}],"predecessor-version":[{"id":1934,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1874\/revisions\/1934"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=1874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=1874"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=1874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}