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
As @Leo Liu-MSFT mentioed, I had to set the RuntimeFrameworkVersion and RuntimeIdentifier in .csproj file:
RuntimeFrameworkVersion
RuntimeIdentifier
2.1.1 AnyCPU win-x64
But then importantly, I had to restore packages for the solution.