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
TargetLatestRuntimePatchattribute in.csprojfile:<PropertyGroup> <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> </PropertyGroup>
Or
-
set
RuntimeFrameworkVersionandRuntimeIdentifierin.csproj
file:<PropertyGroup> <RuntimeFrameworkVersion>2.1.1</RuntimeFrameworkVersion> <PlatformTarget>AnyCPU</PlatformTarget> <RuntimeIdentifier>win-x64</RuntimeIdentifier> </PropertyGroup>
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.