c# - MSB0001: Internal MSBuild Error: Throwing from logger shutdown
问题描述
After updating the Visual Studio to 15.8.0, I could not open any projects with the following error.
Microsoft Visual Studio
MSB0001: Internal MSBuild Error: Throwing from logger shutdown
System.TypeLoadException: Could not load type 'Microsoft.Build.Framework.IEventSource3' from assembly >'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownComponent()
at Microsoft.Build.Evaluation.ProjectCollection.ShutDownLoggingService()
I tried to repair visual studio. I even tried to reinstall. Please help in trying to debug this issue.
解决方案
following solved for me.
gacutil /u Microsoft.Build.Framework
gacutil /i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll"
推荐阅读
- html - 除了angularjs中的几个链接外,如何在点击时隐藏div
- c# - 可以将 ID(字符串)列表传递给 MongoDB 的删除方法吗?
- autohotkey - 试图在我的键盘上识别 Fn + V
- java - 如何以最低要求运行 Spring Boot 应用程序?
- javascript - 让导航栏 onclick/href 在圆形元素上执行动画然后加载新页面 - 如何?
- javascript - 单击顶部的链接时会调用 onclick 函数
- javascript - 如何附加一个`` 选择之前/之后 `
`给定clientHeight的元素?
- macos - 使用命令行参数将软件部署到 macOS 端点
- android - 无法为 Android Q 获取模拟器 x86 图像。说“无法解决依赖关系”
- reactjs - 我可以在组件内部使用 redux 的 createStore() 吗?