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

前端 未结 16 1370
死守一世寂寞
死守一世寂寞 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:38

    As pointed out by @CaptainAmerica the solution is to update the CodeDom assembly from NuGet. One should point out how to do this in Visual Studio. I found the solution here:

    https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform/

    Basically, in the Visual Studio menu select:

    Tools-> Nuget Package Manager -> Package Manager Console

    In the console that appears at the bottom of Visual Studio run this command:

    Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform
    

提交回复
热议问题