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

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

    if you execute a dotnet new and look at the output project json, you will see that the monikers have changed.

    Make the changes to your project.json as follows:

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

提交回复
热议问题