Error when opening Unity shader file in Visual Studio

Whenever I open a Unity shader file in Visual Studio, I get the error message below In ActivityLog.xml, the error says LegacySitePackage failed for package [Visual C++ Package]Source: 'Microsoft.