There is a duplicate 'entityFramework' section defined - EntityFramework6 upgrade

前端 未结 4 1372
甜味超标
甜味超标 2020-12-19 13:11

I have recently updated EntityFramework in my WebAPI project from v5 to v6. Unfortunately it seems like somewhere, somehow, there is a reference that exists in some config s

4条回答
  •  暖寄归人
    2020-12-19 13:26

    I know its a bit late to answer but I use S/O as a personal reference and I ran into this problem myself recently so I would like to offer a solution that worked for me.

    This is happening simply because you have 2 versions of EF installed. Simply go to the nugget package manager and uninstall the version you don't want (i.e. if you have 5 and 6 of EF, you might want to uninstall EF5). When complete a restart might be required but all should work after.

    Hope this helps. If you want me to explain in more details the step by step process just add a comment and let me know.

提交回复
热议问题