I have a new installation of VS2015 (update 2) and the most up to date version of office developer tools installed (not the preview version). When I try to create a new SharePoint Add-in (SharePoint-Hosted, SharePoint Online) I receive the following error:
Unhandled exception occurred while calling method 'ProjectEvents_Initialized' of type 'Microsoft.VisualStudio.SharePoint.AppManifestRefactoring, Microsoft.VisualStudio.SharePoint.Project, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Exception: System.NullReferenceException. Message: Object reference not set to an instance of an object.
This error is shown after the following message in the output window:
"Added Images to Feature1"
In some cases, I am able to publish the add-in (blank add-in, without making any changes to the created project) but none of the designer views work (app manifest designer/package designer/feature designer, etc/). In some cases it fails to publish with the following message (showing the correct path to the package file):
"Error: Failed to resolve the reference for the package file C:\bla\bla\bla\Package\Package.package."
Anyone know what can cause this behavior and how to fix this?