Can not find runtime target for framework .NETCoreApp=v1 compatible with one of the target runtimes

后端 未结 10 2107
你的背包
你的背包 2020-12-02 06:29

I am trying to migrate an Asp.Net Core RC1 project to RC2 and have been following this documentation and have also followed the instructions for DNX migration to .NET CLI.

10条回答
  •  天命终不由人
    2020-12-02 07:01

    in project.json I changed this (added type):

    //"Microsoft.NETCore.App": "1.1.0",
    "Microsoft.NETCore.App": { "version": "1.1.0", "type": "platform" },
    

    Now I can build again :-)

    update: now I can build again but not "run" the website.

    You need to make sure you have the runtime and sdk also:

    *) Visual Studio tools include .NET Core 1.0.1. To add .NET Core 1.1 support you need to also install the .NET Core 1.1 runtime.

    https://www.microsoft.com/net/download/core#/current

提交回复
热议问题