说说最近学习,遇到的一个问题,
找解决办法弄了接近一个小时,简直受不了。
创建实体数据模型的时候会报这个错
The project’s target framework does not contain Entity Framework runtime assemblies. Please review the target framework information in the project’s property page
项目的目标框架不包含实体框架运行时程序集。请在项目的属性页中查看目标的框架信息
问题描述
当我们想要创建实体数据模型的时候
会创建失败报错:
The project’s target framework does not contain Entity Framework runtime assemblies. Please review the target framework information in the project’s property page
起初我去搜,很多都说是.net 选错了,或者没有安装正确的版本,但是.net 4.5 官网已经不能安装了。后面就去stack overflow找到了答案
解决方案:
我们一开始创建项目的时候,就不要选择Console App,而应该选择Console App(.NET Framework)
然后按照正常的创建实体数据模型的流程去做就不会报那个错了
有一说一,优快云上面压根找不到答案