HRESULT: 0x80131040: The located assembly's manifest definition does not match the assembly reference

后端 未结 19 2551
庸人自扰
庸人自扰 2020-12-02 19:27

The located assembly\'s manifest definition does not match the assembly reference

getting this when running nunit through ncover. Any idea?

19条回答
  •  天涯浪人
    2020-12-02 20:11

    This is a mismatch between assemblies: a DLL referenced from an assembly doesn't have a method signature that's expected.

    Clean the solution, rebuild everything, and try again.

    Also, be careful if this is a reference to something that's in the GAC; it could be that something somewhere is pointing to an incorrect version. Make sure (through the Properties of each reference) that the correct version is chosen or that Specific Version is set false.

提交回复
热议问题