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

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

    I received this error after updating VS2015 core template to 1.0.1. It was because I have a PCL that targets netstandard 1.4 if you don't want to have to specify each runtime, Just change the dependency markup for Microsoft.NETCore.App to this:

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

提交回复
热议问题