Compilation error in Visual Studio 2015 when a new .NET Core 1 web app is created, if you have already installed Visual Studio 2017 RC.
I had this problem too, it seems that for some reason the latest .NET Core tools (that is installed via Visual Studio 2017) isn't compatible with Visual Studio 2015 and since it can't load the tools you get this message.
You can fix this in the global.json in your solution folder. Look for the "sdk"
section and adjust the "version"
to what you have installed on your computer. If you have done a default installation it would reside under %ProgramFiles%\dotnet\sdk.
For example I have a version called 1.0.0-preview.2-1-003180
, so my global.json looks like this:
{
"projects": [ "src" ],
"sdk": { "version": "1.0.0-preview2-1-003180" }
}
I found a link that fixes this issue very clearly and here is the link. https://chamindac.blogspot.com/2017/02/resolve-msb4019-imported-project.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With