Could not load file or assembly Microsoft.CodeAnalysis

前端 未结 6 1382
庸人自扰
庸人自扰 2021-01-01 08:50

I have a webproject I am trying to host, but when the server tries to compile it, I get the following error:

Unhandled Exception: System.IO.FileLoadE

6条回答
  •  春和景丽
    2021-01-01 09:35

    I figured this out myself. To anyone reading this, the problem was that the Nuget package Microsoft.CodeDom.Providers.DotNetCompilerPlatform (which also contains the CodeAnalysis package) was the wrong version. I created a new webproject, updated the offending Nuget package right away, and the problem was solved.

提交回复
热议问题