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 671
一个人的身影
一个人的身影 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条回答
  •  Happy的楠姐
    2020-12-08 13:37

    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.

提交回复
热议问题