We used SharePoint Online based template in Visual Studio 2015 in order to develop SharePoint hosted add-in.
Our client’s requirement is to deploy it in the SharePoint 2013 On premise. So we had to convert the solution.
- Right click on AppManifest.xml and click on View Code.
- Then change the SharePointMinVersion to 126.96.36.199
- Double click on on Package.package under Package folder.
- There you will find SharePoint Product Version. Change it to 15.0.
Now you can publish the solution and deploy to SharePoint 2013 On premise.