Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 正在尝试安装“EntityFramework”的版本“5.0.0”,但该项目已包含其他版本_.net_Entity Framework_Error Handling_Visual Studio 2012_Entity Framework 5 - Fatal编程技术网

.net 正在尝试安装“EntityFramework”的版本“5.0.0”,但该项目已包含其他版本

.net 正在尝试安装“EntityFramework”的版本“5.0.0”,但该项目已包含其他版本,.net,entity-framework,error-handling,visual-studio-2012,entity-framework-5,.net,Entity Framework,Error Handling,Visual Studio 2012,Entity Framework 5,添加代码生成项时,出现以下错误: 正在尝试安装“EntityFramework”的版本“5.0.0”,但 项目已包含不同的版本。跳过 如何修复它?尝试执行命令,希望它能帮助您: 卸载包EntityFramework-Force 它强制卸载带有依赖项的包 卸载后执行: 安装包EntityFramework 尝试执行命令,希望对您有所帮助: 卸载包EntityFramework-Force 它强制卸载带有依赖项的包 卸载后执行: 安装包EntityFramework 谢谢,在阅读了很多其他答案后,这

添加代码生成项时,出现以下错误:

正在尝试安装“EntityFramework”的版本“5.0.0”,但 项目已包含不同的版本。跳过

如何修复它?

尝试执行命令,希望它能帮助您:

卸载包EntityFramework-Force

它强制卸载带有依赖项的包 卸载后执行:

安装包EntityFramework

尝试执行命令,希望对您有所帮助:

卸载包EntityFramework-Force

它强制卸载带有依赖项的包 卸载后执行:

安装包EntityFramework


谢谢,在阅读了很多其他答案后,这两个简单的步骤实际上对我很有效

PM> Uninstall-Package EntityFramework -Force
Removing 'EntityFramework 5.0.0' from XXXXX.
Successfully removed 'EntityFramework 5.0.0' from XXXXX.
Uninstalling 'EntityFramework 5.0.0'.
Successfully uninstalled 'EntityFramework 5.0.0'.

PM> Install-Package EntityFramework
Installing 'EntityFramework 5.0.0'.
You are downloading EntityFramework from Microsoft, the license agreement to which is    available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 5.0.0'.
Adding 'EntityFramework 5.0.0' to XXXXX.
Successfully added 'EntityFramework 5.0.0' to XXXXX.
在此之前,我尝试过以下方法,但没有成功: 1.已删除对EntityFramework的现有引用,但无法添加新引用。 2.研究EntityFramework是否需要以不同方式下载和安装

谢天谢地,我没有关注其他关于安装CTP5的帖子。我已经为web安装了.NET4.5和VS Express。不需要其他安装


免责声明:我是初学者,所以我的答案可能不完全正确

谢谢,在阅读了许多其他答案后,这两个简单的步骤实际上对我很有效

PM> Uninstall-Package EntityFramework -Force
Removing 'EntityFramework 5.0.0' from XXXXX.
Successfully removed 'EntityFramework 5.0.0' from XXXXX.
Uninstalling 'EntityFramework 5.0.0'.
Successfully uninstalled 'EntityFramework 5.0.0'.

PM> Install-Package EntityFramework
Installing 'EntityFramework 5.0.0'.
You are downloading EntityFramework from Microsoft, the license agreement to which is    available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 5.0.0'.
Adding 'EntityFramework 5.0.0' to XXXXX.
Successfully added 'EntityFramework 5.0.0' to XXXXX.
在此之前,我尝试过以下方法,但没有成功: 1.已删除对EntityFramework的现有引用,但无法添加新引用。 2.研究EntityFramework是否需要以不同方式下载和安装

谢天谢地,我没有关注其他关于安装CTP5的帖子。我已经为web安装了.NET4.5和VS Express。不需要其他安装


免责声明:我是初学者,所以我的答案可能不完全正确

已安装的版本。它是用nuget安装的吗?如果,那么您是否尝试过从Package manager控制台使用Uninstall Package EntityFramework卸载它?已经安装了哪个版本。它是用nuget安装的吗?如果,那么您是否尝试过从Package manager控制台使用Uninstall Package EntityFramework卸载它?是的!这很有帮助。它显示:已成功卸载“EntityFramework 5.0.0-rc”。在此之后,成功安装了“EntityFramework 5.0.0”。所以RC就是问题所在。谢谢你,伙计!!!是 啊这很有帮助。它显示:已成功卸载“EntityFramework 5.0.0-rc”。在此之后,成功安装了“EntityFramework 5.0.0”。所以RC就是问题所在。谢谢你,伙计!!!