Skip to content

Potential off-by-one in versions for runtime packs/app hosts/etc for .NET 7 vs .NET 6? #19067

Closed as not planned
@baronfel

Description

@baronfel

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions