VS 15.3.1を起動するときに、このエラーがアクティビティログに表示されます。 拡張機能を無効にすると消えるため、PVSスタジオに関連しているようです。起動時にC++がインストールされていないとエラーが発生する
私はC#のみを使用しているので、C++モジュールはインストールされていません。 メッセージに「OK」をクリックすると、他の異常は発生しません。
<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>
私は、他のすべてのサードパーティ製の拡張機能を無効にしようと、起動時に開く次のウィンドウでVSを再起動:
- C#インタラクティブ
- エラー一覧
- タスクリスト
- コマンドウィンドウ
- 出力
- テストex plorer
- ソリューションエクスプローラ
- チームエクスプローラ
- スタートページ
はその後PVSを有効にしてVSを再起動:私は 'のVisual C++プロジェクトシステムパッケージ' はなかったエラーメッセージ
を得ました正しくロードしてください。
<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>
は、私は、コンポーネントキャッシュフォルダを削除: 私はまだエラーを得ました。
ClearMEFComponentCacheでクリーニングしました。 PVSを再起動しましたが、再現できません。
その他の情報:私は、私は%appdata%\Microsoft\VisualStudio
で複数のフォルダを持っていたすなわち14.0
、15.0
とComponentCache
フォルダが存在する15.0_aaea4580
をClearMEFComponentCacheをruningて前にVS 15.3.2
- にアップグレードしました。 今私は
15.0_aaea4580
フォルダしか持っていません。 - VSが管理者モードで開かれています。
ありがとうございます。この問題は認識しており、解決に向けて現在作業中です。 –
ClearMEFComponentCacheを実行して問題が解決されたことを正しく理解していますか?もしそうなら、VSインストールが多少壊れている可能性があります。以前はVisual C++コンポーネントがあったのでしょうか?後でアンインストールしましたか? PVS-Studio VS拡張機能は、実際にはVisual C++ VSコンポーネントが存在する場合、そのコンポーネントと対話します。 IDEが何らかの形で欠けていることを「認識」していなかったため、PVS-Studioがアクセスしようとした後にIDEが存在しないC++コンポーネントを読み込もうとしていたようです。 –
私は、バグを再現して一度に1ステップずつ行うために行ったすべてのステップに注意するようにしました。 ClearMEFComponentCacheを実行しただけで、問題はなくなりました。だから私は解決策だと思っていますが、ComponentCacheフォルダ以上のものをクリアするかどうかは確認していません。やや壊れたVSのインストールが正しいと思う。私は最近PCを再インストールし、VS 15.2をインストールしました。翌日、VS 15.3にアップグレードしようとしましたが、インストールにいくつかの問題がありました。私が正しく覚えていれば私はVSをアンインストールし、VS15.3をインストールしました。 –