Use "Closest" sdk instead of "Latest"
This commit is contained in:
parent
4f6bac312d
commit
2075e8765b
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ public abstract class GetClosestArchive : Microsoft.Build.Utilities.Task, ICance
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the URL of the latest official archive for the given version string and RID.
|
/// Get the URL of the latest official archive for the given version string and RID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract Task<string?> GetLatestOfficialArchiveUrl();
|
public abstract Task<string?> GetClosestOfficialArchiveUrl();
|
||||||
|
|
||||||
public abstract Task<string?> GetClosestOfficialArchiveVersion();
|
public abstract Task<string?> GetClosestOfficialArchiveVersion();
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class GetClosestOfficialSdk : GetClosestArchive
|
||||||
private string? closestVersion;
|
private string? closestVersion;
|
||||||
private string? closestUrl;
|
private string? closestUrl;
|
||||||
|
|
||||||
public override async Task<string?> GetLatestOfficialArchiveUrl()
|
public override async Task<string?> GetClosestOfficialArchiveUrl()
|
||||||
{
|
{
|
||||||
// Channel in the form of 9.0.1xx
|
// Channel in the form of 9.0.1xx
|
||||||
var channel = BuiltVersion[..5] + "xx";
|
var channel = BuiltVersion[..5] + "xx";
|
||||||
|
@ -38,7 +38,7 @@ public class GetClosestOfficialSdk : GetClosestArchive
|
||||||
{
|
{
|
||||||
return closestVersion;
|
return closestVersion;
|
||||||
}
|
}
|
||||||
_ = await GetLatestOfficialArchiveUrl();
|
_ = await GetClosestOfficialArchiveUrl();
|
||||||
return closestVersion;
|
return closestVersion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue