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

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

    My WPF project referenced 3 custom dlls. I updated one of them, deleted the reference and added the reference to the new dll. It also showed the correct version number in the properties of the reference. It was rebuilding without an error.

    But when the application was running, the failure "The located assembly's manifest .." occured, mentioning the old version.

    After searching for a solution for hours and reading couple of threads like this, I remembered the other dlls. One of the other dlls was referencing the old version, and that's why the failure occured. After rebuilding the 2nd dll and recreating both references in my WPF project, the failure was gone.

    Don't forget to check your other dlls!

提交回复
热议问题