Dotnetcore Cross-platform ~ problem ~netcoreapp, version=v1.0 ' compatible with one of the target runtimes: ' win10-x64

Source: Internet
Author: User
Tags dotnet

Back to Catalog

After you create a new console project, the compiler appears 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 '

Solution:

Open Project.json

Add the following code to the root node

"Runtimes": {
"Win10-x64": {}
},

It looks like this when it is added:

The above problem can be solved, in fact, is to tell Dotnet core this project to run on 64-bit Windows!

Back to Catalog

Dotnetcore Cross-platform ~ problem ~netcoreapp, version=v1.0 ' compatible with one of the target runtimes: ' win10-x64

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.