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
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
This is a known issue at this moment. To resolve this issue, you can try following workarounds:
Add TargetLatestRuntimePatch attribute in .csproj file:
true
Or
set RuntimeFrameworkVersion and RuntimeIdentifier in .csproj
file:
2.1.1
AnyCPU
win-x64
If above workaround not work for you, please check more workarounds on the investigation issue.
See Self-contained deployment runtime roll forward for more information.