Potential off-by-one in versions for runtime packs/app hosts/etc for .NET 7 vs .NET 6?
baronfel opened this issue · 4 comments
While investigating dotnet/sdk#39544 I discovered that the .NET 6 Ubuntu package and the .NET 7 Ubuntu package disagree about what the latest version of the .NET 6 Runtime Packs, AppHosts, etc should be. This means that the .NET 7 SDK cannot build a .NET 6 application without going to NuGet.org to download additional assets. This feels like a bug to me.
Repro Steps:
- https://gist.github.com/richlander/27c03db34b3f06fd044c611562def589
- In text
- in a fresh Jammy install
- install dotnet6 apt package
- create a .NET 6-targeting application
- build it
- install the dotnet7 apt package
- try to build that same .NET 6 application
- fail due to connectivity issues with NuGet.org
The dotnet6
package is version 6.0.127-0ubuntu1~22.04.1
.
The dotnet7
package is version 7.0.117-0ubuntu1~22.04.1
.
Here are the versions and names of the Packs required for a .NET 6 console application:
Pack Name | .NET 6 SDK Installed Version | .NET 7 SDK Installed Version | .NET 7 Required Version for a .NET 6 app |
---|---|---|---|
Microsoft.NETCore.App.Ref | 6.0.27 | 7.0.17 | 6.0.28 |
Microsoft.AspNetCore.App.Ref | 6.0.27 | 7.0.17 | 6.0.28 |
Microsoft.NETCore.App.Host.linux-x64 | - | - | 6.0.28 |
Microsoft.NETCore.App.Host.ubuntu-x64 | 6.0.27 | 7.0.17 | - |
Note here also that the 7 SDK is looking for a specific AppHost RID that is not being installed, which also causes an errant download, but that's a separate issue.
This may be a point in time problem - the 7 SDK on the distro feeds matches to the latest release (7.0.17 from 3 days ago) but the 6 SDK on the distro feeds is one behind (6.0.28 from 3 days ago) - maybe that's the whole problem?
@MichaelSimons seems like there was a delay in the distro built 6 version of the SDK. Additionally, it sounds like something with their source build version is creating a need for an unbuntu app host. I'm not sure if that's expected. Maybe a topic for the next source build meeting with our OSS partners.
Additionally, it sounds like something with their source build version is creating a need for an unbuntu app host. I'm not sure if that's expected.
source-build are RID specific, they are not portable.