diff --git a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestArchive.cs b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestArchive.cs index fc69a385a..8039301cc 100644 --- a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestArchive.cs +++ b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestArchive.cs @@ -52,7 +52,7 @@ public abstract class GetClosestArchive : Microsoft.Build.Utilities.Task, ICance /// /// Get the URL of the latest official archive for the given version string and RID. /// - public abstract Task GetLatestOfficialArchiveUrl(); + public abstract Task GetClosestOfficialArchiveUrl(); public abstract Task GetClosestOfficialArchiveVersion(); diff --git a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestOfficialSdk.cs b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestOfficialSdk.cs index 95819f7be..bb038516c 100644 --- a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestOfficialSdk.cs +++ b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.SdkArchiveDiff/GetClosestOfficialSdk.cs @@ -15,7 +15,7 @@ public class GetClosestOfficialSdk : GetClosestArchive private string? closestVersion; private string? closestUrl; - public override async Task GetLatestOfficialArchiveUrl() + public override async Task GetClosestOfficialArchiveUrl() { // Channel in the form of 9.0.1xx var channel = BuiltVersion[..5] + "xx"; @@ -38,7 +38,7 @@ public class GetClosestOfficialSdk : GetClosestArchive { return closestVersion; } - _ = await GetLatestOfficialArchiveUrl(); + _ = await GetClosestOfficialArchiveUrl(); return closestVersion; } }