Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

New Project - Upgraded to 1.0.1 - Solutions to fix project.

$
0
0

If you create a new ASP.NET Core Web Application, and then upgrade via NuGet Package manager, the project will not compile.

Your message that you run into is 

        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:

        1. The project has not been restored or restore failed - run `dotnet restore`
        2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
        3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries.

Solution: Edit your project.json file to include a new 'runtimes' section.

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


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>