I use Visual Studio 2017 to build and deploy SharePoint-hosted plugin to dev sharepoint environment. Can I authomatize this process? I want SharePoint plugin to be automatically deployed to dev server on commit to master branch.

I can't find any CLI tools for building or deploying SharePoint plugin.


Not expert but maybe these points help. If you are using TFS

Edit: I see you are using SharePoint Online. Maybe this post helps: https://writeabout.net/2016/03/23/how-to-deploy-sharepoint-apps-with-vsts-release-management/

| improve this answer | |
  • I cant find how to use these commands Install-SPSolution an Add-SPSolution. I see they are part of sharepoint-server module but there are no installation instruction for this module. Unfortunately, sharepoint-pnp module works for me but doesn't provide commands I need. (I need to deploy .app|.wsp file to sharepoint site) – Grigory Zaripov Jul 26 '18 at 15:57
  • Are you using SharePoint online or Onpremises? These commands only work for onpremises – Oak3 Jul 27 '18 at 6:40
  • With Add-SPSolution, there's a sample on the page. Just point to the WSP and add it to SharePoint. After you've added it, you can run Install-SPSolution and provide the filename to instal it. This post is more step-by-step: c-sharpcorner.com/UploadFile/5b1f04/… – Oak3 Jul 27 '18 at 6:41
  • I use SharePoint Online. Also I found Install-PnPSolution, will it work for Sharepoint Online? I tried to use that command, it fell with error "File not found exception" but file path was correct. I guess problem is in PackageId, where can I find it? I tried to use all ids from AppManifest and .csproj file. They didn't work. – Grigory Zaripov Jul 27 '18 at 7:22
  • These commands are targeted at SharePoint onpremises. Deploying WSP's is not supported on SharePoint online, except for some declarative sandbox solutions. – Oak3 Jul 27 '18 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.