.NET SDK 5.0.202 fails to compile netcoreapp3.1 projects
See original GitHub issueUsing the .NET 5.0.202 SDK to compile a project targeting netcoreapp3.1
fails with the following errors:
error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 3.1.14)
error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 3.1.14)
error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 3.1.14)
It looks like with .NET 5.0.5 being released a week earlier than usual, it has dependencies on the 3.1 release for next Tuesday that haven’t been published to NuGet.org yet.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Can the .NET 5 SDK be used to compile .NET Core 3.1 ...
Yes the .NET 5 SDK can and will readily compile .NET Core 3.1 projects. You need to set <TargetFramework> appropriately.
Read more >The Current .NET SDK does not support targeting . ...
How to work around a common .NET Core compilation targeting error using .NET Core 3 SDK and .NET Core 3 projects with Visual...
Read more >MSBuild uses .Net 5.0 SDK or .Net core SDKs for . ...
Net 5.0 SDK or .Net core SDKs instead of .Net framework SDK for building net48 .csproj-s in the new netcore-like format. And it...
Read more >Solution to Visual Studio 2022 messing up ...
Our .NET 5 and .NET Standard 2 projects couldn't be loaded anymore in Visual Studio 2019. The error shown when attempting to load...
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
I am still getting what appears to be the same nuget restore error message with GitHub Action workflows on Windows platforms. Linux platforms (same code, same workflow, same everything) runs fine.
Reverting to SDK 5.0.201 corrects the error and builds properly on both platforms; you can see in the latter PR that changing the SDK version was all that was required to make it build successfully. You can also see that nuget package restore was completed successfully on Linux even though the run was canceled due to the failure on the Windows run.
GitHub Actions has confirmed that they’ve rolled out a fix to remove an empty Nuget.config file that was still causing issues for some customers (as NuGet also made a change to not automatically include NuGet.org when an empty NuGet.config file is found). We believe this should be resolved now thought they warn that any users for the choco package manager may still be broken because that manager also creates an empty Nuget.config. Closing this issue. Please reactivate if you still see issues.