用dotnet run运行ASP.NET Core站点,出现下面的错误:
/git/AboutUs/project.json(15,55): error NU1002: The dependency Ix-Async 1.2.5 does not support framework .NETCoreApp,Version=v1.0.
对应的project.json条目是:
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*"
dotnet cli的版本是:
.NET Command Line Tools (1.0.0-rc2-002339)
EF 对 Ix-Async 的依赖见这里
参考这篇博文.NET Core 1.0 RC2 历险之旅,将project.json中的frameworks配置:
"frameworks": { "netcoreapp1.0": { "imports": [ "portable-net45+wp80+win8+wpa81+dnxcore50" ] } }
改为:
"frameworks": { "netcoreapp1.0": { "imports": [ "portable-net45+wp80+win8+wpa81+dnxcore50", "portable-net45+win8+wp8+wpa81", "portable-net45+win8+wp8" ] } }
之后,问题解决。
http://www.cnblogs.com/cmt/p/5263631.html
"imports": [ "portable-net452+win81" ]