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

回到目录

新建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上运行!

回到目录

 

posted @   张占岭  阅读(778)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
历史上的今天:
2016-07-12 Lind.DDD.IoC(大叔推荐)~在服务定位器中引入IoC容器~容器的适配器
2013-07-12 将不确定变为确定~DateTime.MinValue和MaxValue引发的异常
2012-07-12 爱上MVC3系列~使用@需要注意的地方
2011-07-12 不忘本~explicit和implicit修饰符
2011-07-12 MVC3+EF4.1开发之一
2011-07-12 EF架构~了解一下,ADO.NET Entity Framework
点击右上角即可分享
微信分享提示