Dotnet SDK 2.1.401 has runtime version 2.1.3-servicing-26724-03
See original GitHub issueSteps to reproduce
Checkout this repo at tag v2.1.401 Run ./build.sh /t:Compile Open shared/Microsoft.NETCore.App directory from build output
Expected behavior
We see a folder named 2.1.3, and can restore/publish/run applications against framework 2.1.3.
Actual behavior
We see a folder named 2.1.3-servicing-26724-03. This doesn’t seem to be the case when following the steps for installing (vs building from source): https://www.microsoft.com/net/download/linux-package-manager/ubuntu14-04/sdk-current
Supplying this value in the .csproj produces the following warning:
/tmp/app/msbuild_self_contained.csproj : warning NU1603: msbuild_self_contained depends on Microsoft.NETCore.App (>= 2.1.3-servicing-26724-03) but Microsoft.NETCore.App 2.1.3-servicing-26724-03 was not found. An approximate best match of Microsoft.NETCore.App 2.1.3 was resolved.
2018-08-27T10:31:35.18-0400 [STG/0] OUT /tmp/app/msbuild_self_contained.csproj : error : NETSDK1061: The project was restored using Microsoft.NETCore.App version 2.1.3, but with current settings, version 2.1.3-servicing-26724-03 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. For more information, see https://aka.ms/dotnet-runtime-patch-selection.
This seems to be similar to https://github.com/dotnet/cli/issues/9456.
Issue Analytics
- State:
- Created 5 years ago
- Comments:28 (14 by maintainers)
Top Results From Across the Web
Dotnet SDK 2.1.401 has runtime version 2.1.3-servicing- ...
To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically...
Read more >Download .NET Core 2.1 (Linux, macOS, and Windows)
NET Core 2.1 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of ......
Read more >The current .NET SDK does not support targeting . ...
We have determined that this issue is not a bug. The first SDK with .NET Core 2.1 support is 2.1.300-preview1. We know the...
Read more >NET Core 2.1.3
Released on 2018-08-21; Runtime 2.1.3; SDK 2.1.401; ASP.NET Runtime 2.1.3 ... NET Core 2.1.3 is available for download and usage in your environment....
Read more >Visual Studio 2019 unable to locate .Net Core SDK
Step 1) First run dotnet --list-sdks from the command line (as in Grzegorz Smulko's answer). Take note of the greatest version number.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s come to my attention that VS 15.8.2 did not include the correct, final build of the 2.1.401 SDK. We are working on resolving this issue. In the meantime, uninstalling the 2.1.401 SDK installed by Visual Studio and installing the SDK from the .NET Downloads site should correct the issue.
I too ran into the following error after I updated to Visual Studio 2017.8.2 last night:
Simply uninstalling and reinstalling the .NET Core SDK - 2.1.401 resolved it for me as well.