Project References DLL version hell

后端 未结 10 1170
离开以前
离开以前 2020-12-28 16:19

We\'re having problems getting visual studio to pick up the latest version of a DLL from one of our projects.

We have multiple class library projects (e.g. Business

10条回答
  •  没有蜡笔的小新
    2020-12-28 17:08

    To overcome this, I removed EVERY reference, then added them all back in again. I don't know why this is the solution.

    It is possible that in one project a DLL was incorrect, and it is this incorrect DLL that was pulled through by visual studio and used.

    Edit: Other times this error has occurred is due to a DDL (A) being referenced in the current project also being referenced by another DLL (B). Not rebuilding this other DLL (B) seems to prevent VS from referencing the correct version of DLL (A) in the current project and thus it brings through an older version of DLL (A).

提交回复
热议问题