NETSDK1061: The project was restored using Microsoft.NETCore.App version 1.0.0, but with current settings, version 2.0.9 would be used instead

后端 未结 10 1536
清酒与你
清酒与你 2020-12-15 04:31

I\'m developing a mobile app and using MS App Center for CI. Yesterday the Unit Test project failed to build in App Center with the following error. I couldn\'t recreate the

10条回答
  •  有刺的猬
    2020-12-15 05:01

    I had this issue when building in Azure Devops and none of the other answers would fix it. My Build and Publish steps already had matching --runtime options.

    The fix for me turned out to be to add the following into the the .csproj file (substitute the RuntimeIdentifier with the correct one for your deployment scenario):

      
          ...
          win-x64
      
    

提交回复
热议问题