In this post, we will discuss how to resolve the issue which comes while SharePoint hosted add-in in SharePoint 2016 using Visual Studio 2015. The error comes as: The required version of SharePoint Foundation or SharePoint Server is not installed on this system. The target version of the SharePoint project is 15.0. The error looks like below:
Recently I have installed SharePoint 2016, Visual Studio 2015 with developer tools etc. Then I also Configure On-Premise environment for Apps in SharePoint 2016. But when I tried to create a SharePoint hosted app, in the Specify the SharePoint target version I can see only two options like SharePoint 2013 and SharePoint Online.
And then when I deploy the app, it gives me the below error:
The required version of SharePoint Foundation or SharePoint Server is not installed on this system. The target version of the SharePoint project is 15.0.
After doing some googling when I install Microsoft Office Developer Tools Preview 2 for Visual Studio 2015 and restart visual studio and I can see all three options like SharePoint 2016, SharePoint 2013 and SharePoint Online.
Hope it will be helpful.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: