Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015

Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015
InfoPath alternatives for form designing SharePoint

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”

Also read:
– 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:

Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015
Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015

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\1.0.0.0

Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015
Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015

Generate .app file from visual studio 2015:
Right click on the project and then click on Publish… button like below:

Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015
Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015

Then in the Publish screen click on Package the add-in like below:

Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015
Generate .app file for SharePoint Apps using MSBuild and Visual Studio 2015

After successfully generating the .app file it will open the folder containing the .app file.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply