File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments