知道为什么在Nuget安装Entity Framework 6.1.3之后会收到以下错误吗?
错误通知:“项目foo栏中的依赖项EntityFramework 6.1.3
不支持框架.NETPlatform,Version = v5.4“
这是我的global.json(已编辑的个人数据)
{
"version": "1.0.0-*",
"description": foo bar Class Library",
"authors": [ "foo bar" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"frameworks": {
"net451": { },
"dotnet5.4": {
"dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23516",
"System.Linq": "4.0.1-beta-23516",
"System.Runtime": "4.0.21-beta-23516",
"System.Threading": "4.0.11-beta-23516"
}
}
},
"dependencies": {
"EntityFramework": "6.1.3"
}
}
最佳答案
我通过删除以下行来解决-“ net451”:{},然后用“ net451”替换了“ dotnet5.4”。