From 2075e8765b38206a5f336da2956c81eae3235e04 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:34:00 -0800 Subject: [PATCH] Use "Closest" sdk instead of "Latest" --- .../GetClosestArchive.cs | 2 +- .../GetClosestOfficialSdk.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } }