Type definition exists in two libraries

和自甴很熟 提交于 2019-12-04 22:57:50

As you noticed, you're using the .Net 4.0 version of Entity Framework on .Net 4.5.
That won't work.

Re-install EF from NuGet and it should work fine.

The other options didn't work for me. What did work was going into \packages\EntityFramework.6.1.3\lib\ and deleting the net40 directory and then doing a rebuild all.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!