在急忙升级到EF 5.0.0.0 RC并且无法部署到Windows Azure(.NET 4.0及更低版本)的.NET 4.5项目之后,我决定降级到EF 4.3.1.0.
我不确定执行此类迁移的最佳方法,但我的策略是使用"管理NuGet包"识别哪些项目引用包,取消选中每个项目的包,安装替换并重新检查正确的项目.
不幸的是,在这样做之后,我的解决方案产生了名为"FileLoadException"的名称.
Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Run Code Online (Sandbox Code Playgroud)
我搜索了解决方案文件,特别是packages.config,以获取对EF 5.0.0.0 RC的引用但却找不到.
对于Entity Framework 5.0,需要什么样的最小.Net Framework版本?要么是.Net 4.0还是4.5?