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
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