diff --git a/build_projects/dotnet-cli-build/DebTargets.cs b/build_projects/dotnet-cli-build/DebTargets.cs index 4ac981374..9f8ba6876 100644 --- a/build_projects/dotnet-cli-build/DebTargets.cs +++ b/build_projects/dotnet-cli-build/DebTargets.cs @@ -126,7 +126,7 @@ namespace Microsoft.DotNet.Cli.Build { Monikers.GetSdkDebianPackageName(c), Monikers.GetDebianSharedFrameworkPackageName(CliDependencyVersions.SharedFrameworkVersion), - Monikers.GetDebianHostFxrPackageName(c), + Monikers.GetDebianHostFxrPackageName(CliDependencyVersions.HostFxrVersion), Monikers.GetDebianSharedHostPackageName(c) }; diff --git a/build_projects/shared-build-targets-utils/Utils/Monikers.cs b/build_projects/shared-build-targets-utils/Utils/Monikers.cs index 9a90e9cbd..b9f8ef2d5 100644 --- a/build_projects/shared-build-targets-utils/Utils/Monikers.cs +++ b/build_projects/shared-build-targets-utils/Utils/Monikers.cs @@ -71,9 +71,9 @@ namespace Microsoft.DotNet.Cli.Build return $"{packagePrefix}-dev-{nugetVersion}"; } - public static string GetDebianHostFxrPackageName(BuildTargetContext c) + public static string GetDebianHostFxrPackageName(string hostFxrNugetVersion) { - return $"dotnet-hostfxr".ToLower(); + return $"dotnet-hostfxr-{hostFxrNugetVersion}".ToLower(); } public static string GetDebianSharedFrameworkPackageName(string sharedFrameworkNugetVersion)