question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sdk:5.0 latest tag fails to restore project targeting netcoreapp3.1

See original GitHub issue

Describe the Bug

Since the release of the newest dotnet sdk tag, 5.0.202, our projects have been failing to restore projects that are targeted at netcoreapp3.1

Error:

--------------------------------------------------------------------------------------
12:38:37  Determining projects to restore...
12:39:03  MyApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 3.1.14)
12:39:03  MyApp.csproj : error NU1102:   - Found 45 version(s) in nuget.org [ Nearest version: 5.0.0-preview.1.20120.5 ] 
12:39:03  MyApp : error NU1102:   - Found 0 version(s) in Rev.com myget

csproj

 <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    <LangVersion>latest</LangVersion>
    <ApplicationIcon />
    <OutputType>Exe</OutputType>
  </PropertyGroup>

Reverting back to explicit sdk:5.0.201 tag fixes this behavior

Steps to Reproduce

Using latest docker tag sdk:5.0, sdk:5.0-latest, sdk-5.0.202, try to restore a project targeted at netcoreapp3.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
rbhandacommented, Apr 6, 2021

We have published 3.1.14 nuget packages. Please let us know if this issue is resolved.

2reactions
mthalmancommented, Apr 6, 2021

We have published 3.1.14 nuget packages. Please let us know if this issue is resolved.

I see it resolved with my local VS build scenario.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing build warning NETSSDK1138 when ...
In this short post I describe how to get rid of the following build warning: C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.
Read more >
asp.net - The current .NET SDK does not support targeting . ...
Not a complete answer, but when I got this error, deleting all my bin, obj, internal build outputs, and .vs folders and then...
Read more >
Started to get "This project is targeting a version of .NET ...
I'm getting this same issue with ASP.Net Core 3.1. The solution has been fine for two years and now it want's to install...
Read more >
Dotnet build linux. The answer you're looking for is basically
0 and a console application project targeting . ... I suggest to change to: 1 - 'dotnet restore'; 2 - 'dotnet --no-restore --configuration...
Read more >
Unable to publish using target framework netcore3.1 and ...
When I try to publish it to a folder, using target runtime win-x64 ... can go to the command line and run “dotnet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found