In this post we will discuss how we can generate the .app file using msbuild as well as from visual studio 2015. You can use visual studio 2015 to develop sharepoint hosted app.
Generate .app file using msbuild:
After developing the .app file, open visual studio 2015 command prompt. Then run the command like below:
msbuild /t:Package “E:\Users\Administrator\Documents\Visual Studio 2015\Projects\MyFirstDemoAddin\MyFirstDemoSPAddin\MyFirstDemoSPAddin.csproj”
– How to remove an App from SharePoint 2016 using PowerShell Script?
– Custom Ribbon Action and set the Customize Icon to Ribbon button in a SharePoint Hosted App
– SharePoint 2013 create Provider Hosted App using Visual Studio 2012
The command looks like below:
Once it is generated successfully, it will give success message like below. It will generate the .app file inside the Debug folder like below:
E:\Users\Administrator\Documents\Visual Studio 2015\Projects\MyFirstDemoSPAddin\MyFirstDemoSPAddin\bin\Debug\app.publish\126.96.36.199
Generate .app file from visual studio 2015:
Right click on the project and then click on Publish… button like below:
Then in the Publish screen click on Package the add-in like below:
After successfully generating the .app file it will open the folder containing the .app file.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.