Closed prmces closed 6 years ago
My Config: Visual Studio 2017 version 15.7.1 SD 2.1 RC final: dotnet-sdk-2.1.300-rc1-008673-win-x64
How to reproduce.
1) Create a new solution. Will create as version 2.0.0 2) Run Install-Package Microsoft.NETCore.App -Version 2.0.6 3) Try to build the application
After some research , I created a new file called global.json and put the sdk version inside and I could build .
{
"sdk": {
"version": "2.0.6"
}
}
"The project was restored using Microsoft.NETCore.App version 2.0.6, but with current settings, version 2.0.0 would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore."
This is my CsProj file:
I have not clue in how to fix that!!
Thanks