Assembly's manifest definition does not match assembly reference

后端 未结 5 910
我在风中等你
我在风中等你 2020-12-17 14:47

I updated all the packages of my MVC project and I got the following error:

Could not load file or assembly \'Antlr3.Runtime, Version=3.5.0.2, Cultu

5条回答
  •  渐次进展
    2020-12-17 15:05

    Here's how I managed to solve it:

    Go to the solution explorer and choose Antlr under References, right-click and say properties. Make sure the file version is the same the compiler is looking for. In my case, MSBuild wanted version 5.5.0.2, but the reference properties showed an earlier 2.x version.

    All I had to do is go to the package manager console and type:

    PM> update-package Antlr
    

    Then build the project again, and in-case you get the same error for more assemblies, update them as well. Your issue will be resolved

提交回复
热议问题