Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #616 from willibrandon/614_FixDotNetDownloadUri
Browse files Browse the repository at this point in the history
Fix dotnet download Uri architecture casing
  • Loading branch information
AArnott committed Oct 31, 2022
2 parents d996da4 + 8462afc commit 8b50d32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/Install-DotNetSdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ if (!$arch) { # Windows Powershell leaves this blank
if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { $arch = 'ARM64' }
}

# ProcessArchitecture returns a value with uppercased letters (X86, X64, Arm64), while the associated .NET SDK/Runtime installation
# file is comprised of an architecture value with lowercased letters (dotnet-sdk-6.0.402-win-x64.zip). Lowercase the architecture value
# so that we construct a proper .NET SDK/Runtime Uri.
$arch = $arch.ToString().ToLower();

# Search for all .NET Core runtime versions referenced from MSBuild projects and arrange to install them.
$runtimeVersions = @()
$windowsDesktopRuntimeVersions = @()
Expand Down

0 comments on commit 8b50d32

Please sign in to comment.