Visual Studio 2015 RC Entity Framework 6.1.3 Migrations Error

ⅰ亾dé卋堺 提交于 2019-12-03 05:38:45

I have the same problem :(

My workaround is:

  1. Downgrade Entity Framework to v6.1.1 (at least the new NuGet GUI makes this very easy)
  2. Run the command (for example Add-Migration ...) on the package manager console. It seems to work in this version
  3. Upgrade back to Entity Framework v6.1.3

Seems to be a common issue, but apparently difficult to repo?

Enable-migrations error #1950

Suggest you add your issue details to the above in the hopes that it can be resolved quickly.

As per comment by yishaigalatzer on EF bug #1950, NuGet 3.0 RC2 has now been released, which should fix this problem. Simply download the VSIX from codeplex and install it.

This solved the problem for me.

In my case I just:

1. Closed VS.
2. Removed Entity Framework package in packages folder manually.
3. Opened project and restored packages.

That worked for me.

I found a temporary solution: Comment <package id="EntityFramework" version="6.1.3" targetFramework="net46" userInstalled="true" /> of all its "packages.config" leaving uncommented only the project you want to work with Migrations.

The Team EntityFramework (https://github.com/aspnet/EntityFramework/issues/1950) and NuGet (https://github.com/NuGet/Home/issues/528) are aware of the problem and we will soon have a solution final.

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