I'm seeing this error in the activity log when starting up VS 15.3.1. It seems to be related to PVS studio, as it goes away when I disable the extension.
I'm only using C#, so I don't have any c++ modules installed. After clicking OK to the message, I don't experience any other anomaly.
<entry>
<record>243</record>
<time>2017/08/22 05:07:13.222</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [Visual C++ Project System Package]Source: 'Microsoft.VisualStudio.Project.VisualC.VCProjectEngine' Description: No platforms have been found on this installation.
System.Runtime.InteropServices.COMException (0x8005050A): No platforms have been found on this installation.
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<ReadInstalledPlatformsAsync>d__260.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<<Initialize>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.<>c__DisplayClass7_0.<<Invoke>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1 method)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr instResources, Object sp, Object browser, IVCBuildPackageInternal bldPkg)</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>245</record>
<time>2017/08/22 05:07:15.009</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Visual C++ Project System Package](null)</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>246</record>
<time>2017/08/22 05:07:15.010</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Visual C++ Project System Package]</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
I tried disabling all other third party extensions and restarted VS with the following windows open at startup:
- C# interactive
- Error List
- Task List
- Command Window
- Output
- Test explorer
- Solution Explorer
- Team Explorer
- Start Page
Then enabled PVS and restarted VS: I got the error message
The 'Visual C++ Project System Package' did not load correctly.
<entry>
<record>1784</record>
<time>2017/08/24 19:55:34.094</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Visual C++ Project System Package]</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
</entry>
<entry>
<record>1785</record>
<time>2017/08/24 19:55:34.097</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [Visual C++ Project System Package]Source: 'Microsoft.VisualStudio.Project.VisualC.VCProjectEngine' Description: No platforms have been found on this installation.
System.Runtime.InteropServices.COMException (0x8005050A): No platforms have been found on this installation.
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<ReadInstalledPlatformsAsync>d__260.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<<Initialize>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.<>c__DisplayClass7_0.<<Invoke>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1 method)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr instResources, Object sp, Object browser, IVCBuildPackageInternal bldPkg)</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>1786</record>
<time>2017/08/24 19:55:34.100</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Visual C++ Project System Package](null)</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>1787</record>
<time>2017/08/24 19:55:34.102</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Visual C++ Project System Package]</description>
<guid>{F1C25864-3097-11D2-A5C5-00C04F7968B4}</guid>
<hr>8005050a</hr>
<errorinfo></errorinfo>
</entry>
I then deleted the component cache folder: I still got the error.
Cleaned using ClearMEFComponentCache. Restarted PVS, and now I can't reproduce.
Other Info: I have upgraded to VS 15.3.2
- Before runing ClearMEFComponentCache I had several folders in
%appdata%\Microsoft\VisualStudio
, i.e14.0
,15.0
and15.0_aaea4580
in whichComponentCache
folder resides. Now I only have the15.0_aaea4580
folder. - VS in opened in admin mode.