码迷,mamicode.com
首页 > 移动开发 > 详细

DotNetCore跨平台~问题~NETCoreAPP, Version=v1.0' compatible with one of the target runtimes: 'win10-x64

时间:2017-07-12 15:07:09      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:打开   with   www   错误   possible   blog   项目   htm   fail   

回到目录

新建console项目之后,编译程序出现以下错误:

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‘

解决方案:

打开project.json

将以下代码添加到根节点

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

添加后的样子如下:

技术分享

以上问题就可以得到解决了,事实上就是告诉dotnet core 这个项目要在64位的windows上运行!

回到目录

 

DotNetCore跨平台~问题~NETCoreAPP, Version=v1.0' compatible with one of the target runtimes: 'win10-x64

标签:打开   with   www   错误   possible   blog   项目   htm   fail   

原文地址:http://www.cnblogs.com/lori/p/7154963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!