Dotnet Core appears can not find runtime target for framework '. netcoreapp,version=v1.6 ' Solution

Source: Internet
Author: User

If you run the program after updating the dotnet core new class library, you are prompted with the following error:

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 a list one of ' win10-x64, win81-x64, win7-x64 ' in the ' runtimes '

Workaround: Add the following nodes in the project's file to recompile project.json :

"runtimes":{
"win10-x64":{}
}
或者 可以修改
Microsoft.NETCore.App节点的内容如下,Version的版本请对应你的dotnet core版本号
"Microsoft.NETCore.App":{
"type":"platform",

"version":"1.0.1"

}

Dotnet Core appears can not find runtime target for framework '. netcoreapp,version=v1.6 ' Solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.