Use "Closest" sdk instead of "Latest"

This commit is contained in:
Jackson Schuster 2024-03-05 14:34:00 -08:00
parent 4f6bac312d
commit 2075e8765b
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ public abstract class GetClosestArchive : Microsoft.Build.Utilities.Task, ICance
/// <summary>
/// Get the URL of the latest official archive for the given version string and RID.
/// </summary>
public abstract Task<string?> GetLatestOfficialArchiveUrl();
public abstract Task<string?> GetClosestOfficialArchiveUrl();
public abstract Task<string?> GetClosestOfficialArchiveVersion();

View file

@ -15,7 +15,7 @@ public class GetClosestOfficialSdk : GetClosestArchive
private string? closestVersion;
private string? closestUrl;
public override async Task<string?> GetLatestOfficialArchiveUrl()
public override async Task<string?> 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;
}
}