I'm developing a SharePoint Visual Web Part for SharePoint 2016 with Visual Studio 2015. When I create a new web part all the relevant extensions initialize correctly. However, when I close Visual Studio and reopen it, the "Microsoft.VisualStudio.SharePoint.VisualWebPart" cannot be found.
The dialogue box suggests reinstalling the extension that provides the item type, but I'm not sure which extension provides it or how to identify it.
Furthermore, I'm running this on a server with strict access controls, and uninstalling and reinstalling programs is a lengthy process.
Is there a way to fix this error without having to reinstall, or if not, what extension needs to be reinstalled?
The full error:
Cannot initialize the following SharePoint project item: 'VisualWebPart1'. This item requires a type provider that has the following ID, but this provider could not be found: 'Microsoft.VisualStudio.SharePoint.VisualWebPart.' Reinstall the extension that provides this item type or remove the item from your project.