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": {} },