Could not load file or assembly 'Microsoft.CodeAnalysis, version= 1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependenc

前端 未结 16 1357
死守一世寂寞
死守一世寂寞 2020-11-29 05:18

An update occurred last night and now I find myself unable to do a ctrl + \'.\' for code suggestions in VS 2015. An error message comes up saying the following:

相关标签:
16条回答
  • 2020-11-29 05:40

    I found the missing assemblies in the NuGet package (After the first one was resolved there were mulitple otheres): https://www.nuget.org/packages/Microsoft.Net.Compilers/1.3.1-rc

    Installed them using GacUtil from the Dev console.

    0 讨论(0)
  • 2020-11-29 05:43

    In my case, I was getting this error because my Visual Studio Solution was trying to use TextTransform.exe during a pre-build step in one of the projects, but my local machine didn't have the TextTransform.exe at the path specified by my pre-build step and my first attempt at fixing that was to just copy TextTransform.exe from some other location to where Visual Studio expected it to be. That appears to have caused this problem, because TextTransform.exe has other silent dependencies.

    My fix was to change the pre-build steps so instead of looking for the file at

    C:\Program Files (x86)\Common Files\microsoft shared\TextTemplating\14.0\TextTransform.exe
    

    it would instead look in the Visual Studio install folder which had a bunch of other files, presumably one of which was a peer dependency of TextTransform.exe

    C:\Program Files\Visual Studio\Common7\IDE\TextTransform.exe
    

    That seemed to fix things for me.

    0 讨论(0)
  • 2020-11-29 05:44

    I was also facing same issue. My visual studio 2015 version was 2.0. I upgraded it to version 3.

    Issue got solved !!!

    0 讨论(0)
  • 2020-11-29 05:44

    Today ! i got the same problem and i resolve it by restarting visual studio 2015 :)

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