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

前端 未结 5 2029
执笔经年
执笔经年 2020-12-20 16:33

I updated my community edition of visual studio 2017 to 15.3.0

and I got this new build error

Build Failure. Error: Could not load file or as

相关标签:
5条回答
  • 2020-12-20 17:07

    Deleting .vs folder worked for me

    0 讨论(0)
  • 2020-12-20 17:10

    Disable Lightweight Solution Load

    1. Tools ➜ Options ➜ Projects and Solutions ➜ General

    1. Also disable Lightweight load in the Properties view of the Solution:

    1. Restart Visual Studio
    0 讨论(0)
  • 2020-12-20 17:19

    resoolve it by deleting

    ".vs" Folder "packages" Folder "obj" Folders and Rebuild Solution

    0 讨论(0)
  • 2020-12-20 17:30

    I had a similar experience, but with Enterprise.

    The error persisted until I disabled Lightweight Solution Loading, but I'm including the other steps I took in case they were pre-requisites.

    • I had installed the Azure Functions Support, which wanted me to restart Visual Studio, but I didn't do that until after I started getting the build error message.
    • I re-ran Visual Studio installer and clicked "Modify", even though I didn't change any options, because it wanted to do something, saying my installation size would decrease by 15MB. (Some cleanup from the Azure Functions installation is my guess.)
    • I disabled the Lightweight Solution Load, closes and re-opened the solution, and it finally tried to build. It failed and I got a lot of messages about running NuGet Restore and Build in parallel, but it ran. Once I did a manual NuGet Restore, the build worked.

    I hope this helps.

    0 讨论(0)
  • 2020-12-20 17:32

    If you need to keep Lightweight Solution Load enabled, or don't have the option to disable it, then modifying your Visual Studio install to include "Desktop development with C++" will add the missing file and repair the issue.

    Source: Microsoft Visual Studio Developer Community

    0 讨论(0)
提交回复
热议问题