.NET中的TargetFramework ='dnx46'出错

时间:2017-03-16 15:35:45

标签: asp.net .net

我想运行一个用.NET编写的开源项目,我现在对这个框架的知识还不够,但我已经研究过运行这个项目。

在此过程中出现错误,但我还没有找到如何在文档,论坛和本网站中修复它。我试图修改值dnx46,重新编译是正确的,但运行的时刻不起作用,并生成服务器错误。当我尝试重建解决方案时,有人在控制台中了解此错误

Cannot infer TargetFrameworkIdentifier and/or TargetFrameworkVersion from TargetFramework='dnx46'. They must be specified explicitly

控制台的图像为enter image description here

1 个答案:

答案 0 :(得分:0)

dnx46是.NET Core原始RC的一部分。它已弃用,并记录在composition over inheritance

  

如果您正在使用其他dnx目标,例如dnx451,则也需要更改它们。 dnx451应该更改为net451

您需要将目标框架升级为net46