Skip to content

Commit

Permalink
Fix ARM64 detection on Windows Powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott authored Apr 15, 2023
1 parent 99e9481 commit 2381c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/Install-DotNetSdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ $arch = [System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture
if (!$arch) { # Windows Powershell leaves this blank
$arch = 'x64'
if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { $arch = 'ARM64' }
if (${env:ProgramFiles(Arm)}) { $arch = 'ARM64' }
}

# Search for all .NET runtime versions referenced from MSBuild projects and arrange to install them.
Expand Down

0 comments on commit 2381c72

Please sign in to comment.