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

dotnet core 出现Can not find runtime target for framework '.NETCoreApp,Version=v1.6' 的解决办法

时间:2017-01-20 11:19:28      阅读:1167      评论:0      收藏:0      [点我收藏+]

标签:net   failed   with   type   target   重新编译   framework   版本   解决办法   

如果你在更新dotnet 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:
        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":{}
}
或者 可以修改
Microsoft.NETCore.App节点的内容如下,Version的版本请对应你的dotnet core版本号
"Microsoft.NETCore.App":{
"type":"platform",

"version":"1.0.1"

}

dotnet core 出现Can not find runtime target for framework '.NETCoreApp,Version=v1.6' 的解决办法

标签:net   failed   with   type   target   重新编译   framework   版本   解决办法   

原文地址:http://www.cnblogs.com/xingbo/p/6321984.html

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