Could not load file or assembly "Microsoft.VisualStudio.VC.Interfaces

I upgraded the visual studio 2017 community version to 15.3.0

and i got this new build error

Build error. 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 specified file. ========== Clean: 0 succeeded, 0 failed, 0 skipped ==========

there is no reference error and nothing new in my project, except for the new VS update.

I am developing MVC 5 running under 4.5.1 framework.

+7
c # asp.net-mvc-5 visual-studio-2017
source share
4 answers

Disable Lightweight Solution Load

  • Tools ➜ Options ➜ Projects and Solutions ➜ General

enter image description here

  1. Also turn off the Lightweight load in the "Properties" view of the solution:

enter image description here

  1. Restart Visual Studio
+12
source share

reinstall it by removing

". vs" Folder Folder "packages" Folders "obj" and Reconstruction solutions

+8
source share

I had a similar experience, but with Enterprise.

The error continued until I turned off the download with a lightweight solution, but I will include other steps that I took in case they were preconditions.

  • I installed Azure Feature Support, which wanted me to restart Visual Studio, but I didn’t do this until I started getting a build error message.
  • I restarted the Visual Studio installer and clicked "Change", although I did not change any parameters because he wanted to do something, saying that the size of my installation would decrease by 15 MB. (Some cleanup from installing Azure Functions is my guess.)
  • I turned off the Lightweight Solution Load, closed and reopened the solution, and he finally tried to build. This failed, and I got a lot of messages about running NuGet Restore and Build in parallel, but it worked. After I did a manual NuGet repair, the build worked.

Hope this helps.

+2
source share

Delete .vs folder for me

+1
source share

All Articles