環境
Visual Studio Community 2017 Version 15.4.4 にて。
エラー内容
.NET Core の Console App プロジェクトを新規作成しようとすると、
以下のエラーが発生してプロジェクト作成ができない。
The Visual Studio component cache is out of date (assembly: Microsoft.VisualStudio.Web.MicrosoftAzure.AzureFunctions, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a). Please restart Visual Studio.
同様のエラー例
- Visual Studio 2017 Update 4 (15.4)で ASP.NET Coreプロジェクトが新規作成できない | ブチザッキ
- Cannot create new Assembly of type ".NET Standard" - Developer Community
だいたいこのへんで報告されている例と同じです。
対策
上述の報告例を見ると「Azure WebJobs Tools を 15.0.30923.0 に更新」または「Azure WebJobs Tools を Disable する」ことで解決しそうです。
自分の環境では「Azure WebJobs Tools を Disable する」ことで解決しました。
(15.0.30923.0 への更新も試したかったけどアンインストール&インストール等いろいろ試行錯誤しても 15.0.30812.0 より新しいパッケージが落ちてこなかったので諦めた)