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

后端 未结 19 2451
庸人自扰
庸人自扰 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:05

    I got this error when working in the Designer. I had been developing in VS 2012, but "upgraded" to 2017 over the past couple days. Solution was to close and reopen VS.

    It may be related to a bug which I've seen reported elsewhere, where the Reference Manager does not work? In that situation, the following error message is encountered when trying to add a reference in the Solution Explorer:

    "Error HRESULT E_FAIL has been returned from a call to a COM component."

    My workaround was to close the solution, reopen in VS2012, add the reference, close 2012 and reopen 2017. Ridiculous that 2017 should have been released with such an obvious bug.

提交回复
热议问题