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 searches for Microsoft.NETCore.App.Ref version 6.0.10 and cannot find it

See original GitHub issue

Describe the bug

Building a net6.0 app with SDK version rc.2.22463.3 searches for Microsoft.NETCore.App.Ref version 6.0.10, which it cannot find, and I don’t see it in any of the feeds. I’m hitting this in PRs in dotnet/performance and locally.

❯ dotnet build -c release -f net6.0
MSBuild version 17.4.0-preview-22451-06+2db11c256 for .NET
  Determining projects to restore...
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102: Unable t
o find package Microsoft.NETCore.App.Ref with version (= 6.0.10)
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 2073 version(s) in dotnet6 [ Nearest version: 6.0.2-servicing.1.22101.5 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 1526 version(s) in dotnet7 [ Nearest version: 7.0.0-alpha.1.21417.28 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 1120 version(s) in dotnet5 [ Nearest version: 6.0.0-alpha.1.20420.3 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 76 version(s) in dotnet3.1 [ Nearest version: 3.1.1-servicing.19602.11 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 54 version(s) in dotnet-public [ Nearest version: 7.0.0-preview.1.22076.8 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 1 version(s) in dotnet-eng [ Nearest version: 5.0.0-alpha.1.19618.1 ]
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 0 version(s) in benchmark-dotnet-prerelease
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 0 version(s) in dotnet-tools
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 0 version(s) in dotnet3.1-transport
C:\Users\jschuster\source\performance\src\benchmarks\real-world\ILLink\ILLinkBenchmarks.csproj : error NU1102:   - Foun
d 0 version(s) in dotnet5-transport

To Reproduce

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
.NET SDK:
 Version:   7.0.100-rc.2.22463.3
 Commit:    0490cee5fe

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\7.0.100-rc.2.22463.3\

Host:
  Version:      7.0.0-rc.2.22451.11
  Architecture: x64
  Commit:       6d10e4c8bc

.NET SDKs installed:
  3.1.423 [C:\Program Files\dotnet\sdk]
  6.0.400 [C:\Program Files\dotnet\sdk]
  6.0.401 [C:\Program Files\dotnet\sdk]
  7.0.100-rc.2.22463.3 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0-rc.2.22452.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0-rc.2.22451.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0-rc.2.22431.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
AraHaancommented, Oct 12, 2022

That means the current 7.0.100 stable in the daily feed is now set to 6.0.11?

Sadly, for me this is bad, because I usually like to have my CI for pull requests use the versions in the daily feeds so that way if a bug happens, I can report it as soon as possible so it can be fixed before the stable release of that version (on top of other benefits).

1reaction
AraHaancommented, Sep 15, 2022

I believe this issue it not just nuget, but because the sdk references the wrong version of the nuget packages (ref and each specific runtime version). Aka 6.0.10 instead of 6.0.9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting 'Unable to find package Microsoft. ...
I was working just fine yesterday but this morning I opened my project and began getting 'Unable to find package Microsoft.AspNetCore.App.Ref.' ...
Read more >
The framework 'Microsoft.AspNetCore.App', version '6.0.0' ...
Check for Project tag of .csproj file. If it's Sdk attribute is set to Microsoft.NET.Sdk.Web then this would be a reason for ASP.NET...
Read more >
Unable to find package Microsoft.NETCore.App.Ref with ...
An error ” error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version(= 6.0.10)” occurred when creating the long-lived test code signing ...
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 >
Solution to Visual Studio 2022 messing up ...
Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed...
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