c# - MSB0001 : Internal MSBuild Error: Throwing from logger shutdown

标签 c# visual-studio

将 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/

相关文章:

c# - 尝试标记为 odata 时,可查询属性未在 mvc 4 web api 中编译

c# - 为什么我不能为在 C# 中具有 IList<IList<int>> 返回类型的函数返回类型为 List<List<int>> 的变量

c# - WebDriver 可以使用 xpath 找到元素,Html Agility Pack 不能

c# - 列出与另一个列表条件相关的操作

c# - 如何以编程方式设置 ADO.Net DataTable 的 DataColumn 的 NullValue 属性

c# - .net 核心 : Invalid property identifier character: {. 路径 'Logging',第 10 行,位置 2。Newtonsoft.Json.JsonTextReader.ParseProperty()

c++ - 在 MS VS 2017 中通过前向引用传递的 std::string 文字的空对象?

c# - '<>c.<>9' 是什么意思?我找不到它们的任何声明,它们来自哪里?

visual-studio - 如何从 Visual Studio 运行 (F5) Windows 服务

asp.net - VS2008中点击停止调试后asp.net代码仍然执行