Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK 8.0.304 references unpublished version of .NET 6 #42379

Closed
caaavik-msft opened this issue Jul 25, 2024 · 2 comments
Closed

SDK 8.0.304 references unpublished version of .NET 6 #42379

caaavik-msft opened this issue Jul 25, 2024 · 2 comments
Labels
Area-CLI untriaged Request triage from a team member

Comments

@caaavik-msft
Copy link

caaavik-msft commented Jul 25, 2024

Describe the bug

When using the .NET 8.0.304 SDK, and then attempting to build a project that targets net6.0, the build fails because it tries to use version 6.0.33 which is not on any nuget feeds yet (nuget.org or dotnet-public).

This is causing the dotnet-performance test runs against .NET 8 scenarios to fail currently (link to example failure). The issue does not reproduce when installing the latest daily .NET 9 SDK which uses 6.0.32.

I don't know enough about the .NET release process to know if the bug here is with the SDK referencing a version that shouldn't be referenced, or that 6.0.33 should be published to nuget.org but isn't.

To Reproduce

  1. Install latest daily version of .NET 8 (which at the time of this issue is installing 8.0.304):
.\dotnet-install.ps1 -InstallDir .\dotnet -Architecture x64 -Channel 8.0 -Quality daily
  1. Update your path to use the downloaded SDK
  2. Create a console app:
dotnet new console -o MyApp
  1. Edit MyApp.csproj to use net6.0 as the target framework
  2. Run dotnet build

Exceptions

PS C:\Users\caaavik\Documents\dotnet8-test\MyApp> dotnet build
  Determining projects to restore...
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 120 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22076.8 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 116 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22077.5 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 121 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22109.13 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.win-x64 with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 169 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22076.8 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
  Failed to restore C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj (in 245 ms).

Build FAILED.

C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 120 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22076.8 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 116 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22077.5 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 121 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22109.13 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.win-x64 with version (= 6.0.33)
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 169 version(s) in nuget.org [ Nearest version: 7.0.0-preview.1.22076.8 ]
C:\Users\caaavik\Documents\dotnet8-test\MyApp\MyApp.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
    0 Warning(s)
    4 Error(s)

Time Elapsed 00:00:00.86
@akoeplinger
Copy link
Member

8.0.304 is not a stable release yet (you're explicitly using -Quality daily in the install script) so this is kind of expected, you'd need additional feeds to get the not-yet-published version of the packages.

@caaavik-msft
Copy link
Author

Thanks for the response, we will try get the additional feeds set up then for our pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants