EntityFramework 6.1.3不支持Visual Studio 2015上的框架.NETPlatform,Version = v5.4 [英] EntityFramework 6.1.3 does not support framework .NETPlatform,Version=v5.4 on visual studio 2015
本文介绍了EntityFramework 6.1.3不支持Visual Studio 2015上的框架.NETPlatform,Version = v5.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何想法为什么在Nuget安装实体框架6.1.3之后收到以下错误?
错误提示:项目中的依赖项EntityFramework 6.1.3
不支持框架.NETPlatform,Version = v5 .4
这是我的global.json(编辑个人资料)
< pre class =lang-json prettyprint-override>
{
version:1.0.0- *,
description:foo bar Class Library,
authors:[foo bar],
tags:[],
projectUrl:,
licenseUrl:,
框架:{
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
}
}
},
依赖:{
EntityFramework:6.1.3
}
}
解决方案
我通过删除此行 - net451:{} ,,然后用net451替换dotnet5.4 / p>
Any idea why I receive the following error after Nuget installing Entity framework 6.1.3?
Error notice: "The dependency EntityFramework 6.1.3 in project foo bar does not support framework .NETPlatform,Version=v5.4"
Here's my global.json (edited out personal data)
{
"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"
}
}
解决方案
I solved by deleting this line - "net451": { },, and then replacing "dotnet5.4" with "net451".
这篇关于EntityFramework 6.1.3不支持Visual Studio 2015上的框架.NETPlatform,Version = v5.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文