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

后端 未结 10 2129
你的背包
你的背包 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:10

    I received this error because I used the incredibly broken NuGet Package Manager in Visual Studio 2015 to update my project.json dependencies. It turned this:

    "frameworks": {
      "netcoreapp1.0": {
        "dependencies": {
          "Microsoft.NETCore.App": {
            "type": "platform",
            "version": "1.0.1"
          } 
        }
      }
    }
    

    into this:

    "dependencies": {
      "Microsoft.NETCore.App": "1.1.0"
    },
    "frameworks": {
      "netcoreapp1.0": {}
    }
    

    Bye bye, platform definition!

提交回复
热议问题