您的位置:首页 > 移动开发

.NET Core报错 Can not find runtime target for framework '.NETCoreAPP, Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:

2016-09-15 13:19 525 查看
Can not find runtime target for framework '.NETCoreAPP, Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:

The project has not been restored or restore failed -run 'dotnet restore'

The project does not list one of 'win10-x64, win81-x64, win7-x64' in the 'runtimes'

今天遇到这个问题是在升级程序包的时候,在stackoverflow上找到答案

在restore尝试成功后

在project.json添加如下配置:如果你是win7 8就自行修改

"runtimes": {
"win10-x64": {}
}


这个配置不是内层节点,而是在json的根{}中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐