c# - 无法加载文件或程序集“Microsoft.VisualStudio.VC.Interfaces

标签 c# visual-studio-2017 asp.net-mvc-5

我将我的 visual studio 2017 社区版更新到了 15.3.0

我得到了这个新的构建错误

Build Failure. Error: Could not load file or assembly 'Microsoft.VisualStudio.VC.Interfaces, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ========== Clean: 0 succeeded, 0 failed, 0 skipped ==========

除了新的 VS 更新外,我的项目没有引用错误,也没有任何新内容。

我正在开发一个在 4.5.1 框架下运行的 MVC 5。

最佳答案

禁用轻量级解决方案加载

  1. 工具 ➜ 选项 ➜ 项目和解决方案 ➜ 常规

enter image description here

  1. 同时在解决方案的属性 View 中禁用Lightweight load:

enter image description here

  1. 重新启动 Visual Studio

关于c# - 无法加载文件或程序集“Microsoft.VisualStudio.VC.Interfaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45695002/

相关文章:

asp.net-mvc-5 - 运行 Infragistics 树控件时对象不支持属性或方法 'igTree' 错误

jquery - 当我发布 MVC 5 网站时,相对路径不起作用?

c# - 企业架构师 - 查找原型(prototype)的所有元素的最快方法

c# - vs2017联动实感相机

c# - 将带有 FlagsAttribute 的枚举解析为 SqlParameter

c# - 更新到新的 csproj 格式后无法打开 Windows 窗体设计器

.net - 为什么多次调用 web api 方法

asp.net-mvc - MVC5中使用WEB API和Area的URL路由

c# - 如何在 WinForms 应用程序中取消 PLINQ 查询

c# - 事件+适配器模式