The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.0-rtm-26515-03 would be used instead

后端 未结 6 692
一个人的身影
一个人的身影 2020-12-08 13:06

at the moment I have a microservice made in c # with web api and net core 2.0

in the nutget packages I have already found a version 2.1 of net core and I have decide

6条回答
  •  我在风中等你
    2020-12-08 13:43

    I have solved the issue as follows:

    First, add following code into .csproj file

    
       2.1.1
       AnyCPU
       win-x64
    
    

    Next, check Microsoft.AspNetCore.App version is 2.1.1. if not please install this version.

    Lastly, restore your package with 2.1.1 version. To restore run following code from package manager console

    Install-Package Microsoft.NETCore.App -Version 2.1.1
    

提交回复
热议问题