Skip to content

Commit 9bbaa45

Browse files
Copilotbaronfel
andcommitted
Revert to ProcessArchitecture (OSArchitecture was incorrect)
Co-authored-by: baronfel <[email protected]>
1 parent 817d457 commit 9bbaa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cli/dotnet/MixedInstallationDetector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static class MixedInstallationDetector
2525
// Use 32-bit registry view as specified in the spec
2626
try
2727
{
28-
string arch = RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant();
28+
string arch = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
2929
using (var hklm = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
3030
using (var key = hklm.OpenSubKey($@"SOFTWARE\dotnet\Setup\InstalledVersions\{arch}"))
3131
{
@@ -49,7 +49,7 @@ internal static class MixedInstallationDetector
4949
// Linux/macOS: Read from /etc/dotnet/install_location or /etc/dotnet/install_location_<arch>
5050
try
5151
{
52-
string arch = RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant();
52+
string arch = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
5353
string archSpecificPath = $"/etc/dotnet/install_location_{arch}";
5454
string defaultPath = "/etc/dotnet/install_location";
5555

0 commit comments

Comments
 (0)