我遇到了以下的运行时错误:
[InvalidOperationException: The current runtime target framework is not compatible with 'TestDeployProject'.
Current runtime Target Framework: 'DNX,Version=v4.5 (dnx45)'
Type: CLR
Architecture: x86
Version: 1.0.0-beta6-12256
Please make sure the runtime matches a framework specified in project.json]
项目设置 DNX SDK 版本:
project.json
目标框架:
"frameworks": {
"dnx46": { }
},
DNVM列表:
Active Version Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-beta6 clr x64 win
* 1.0.0-beta6 clr x86 win latest
1.0.0-beta6 coreclr x64 win default
可能是什么问题?
编辑:
我尝试使用dnx451,如这篇文章中所指定的。但问题依旧存在。环境变量也没有起到帮助作用。
dnx451
,问题仍然存在。我已经尝试按建议设置了DNX_IIS_RUNTIME_FRAMEWORK
环境变量。 - Dave New