您的项目没有引用".NETFramework,Version = v4.5"框架. [英] Your project is not referencing the ".NETFramework,Version=v4.5" framework.
本文介绍了您的项目没有引用".NETFramework,Version = v4.5"框架.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用VS 2015.
I am using VS 2015.
您的项目未引用".NETFramework,Version = 4.5" 框架.在其中添加对".NETFramework,Version = 4.5"的引用 您的project.json的框架"部分,然后重新运行NuGet 恢复.
Your project is not referencing the ".NETFramework,Version=4.5" framework. Add a reference to ".NETFramework,Version=4.5" in the "frameworks" section of your project.json, and then re-run NuGet restore.
在添加到我的MVC层后不久,我在数据访问和业务逻辑层上收到此错误.直到那时一切都还不错,但是我不知道是什么触发了这个错误.这是我的project.json:
I am getting this error on my Data Access and Business Logic layers, shortly after adding to my MVC Layer. Things were building fine until then, but I don't know what triggered this error. Here is my project.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"
}
}
}
}
这是我尝试过的:
查看全文