GetLatestDotNetVersion has to be fixed, only WindowsDesktop url is providing latest.

Also, all .NET runtimes should match (desktop 6.0.21 will only be usable with aspnetcore 6.0.21)
This commit is contained in:
Luis Goll
2023-08-31 21:26:32 -03:00
parent 5018db400b
commit 7c499ec95a

View File

@@ -281,7 +281,7 @@ namespace Squirrel
/// <inheritdoc/>
public override async Task<string> GetDownloadUrl()
{
var latest = await GetLatestDotNetVersion(RuntimeType, $"{MinVersion.Major}.{MinVersion.Minor}").ConfigureAwait(false);
var latest = await GetLatestDotNetVersion(DotnetRuntimeType.WindowsDesktop, $"{MinVersion.Major}.{MinVersion.Minor}").ConfigureAwait(false);
var architecture = CpuArchitecture switch {
RuntimeCpu.x86 => "x86",
RuntimeCpu.x64 => "x64",