将 Visual Studio 更新到 15.8.0 后,我无法打开任何项目,并出现以下错误。
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()
我尝试修复 Visual Studio。我什至尝试重新安装。请帮助尝试调试此问题。
最佳答案
以下为我解决了。
gacutil /u Microsoft.Build.Framework
gacutil /i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll"
关于c# - MSB0001 : Internal MSBuild Error: Throwing from logger shutdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51881910/