[Breaking change]: RuntimeInformation.OSArchitecture return value under emulation #30894
Closed
1 of 2 tasks
Labels
binary incompatible
Existing binaries may encounter a breaking change in behavior.
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 7
Work items for the .NET 7 release
Description
RuntimeInformation.OSArchitecture
returned incorrect value under emulation.Version
.NET 7 Preview 6
Previous behavior
System.Runtime.InteropServices.RuntimeInformation.OSArchitecture
returnedArchitecture.x64
in emulated processes on Windows Arm 64-bit and macOS Apple Silicon systems.New behavior
System.Runtime.InteropServices.RuntimeInformation.OSArchitecture
returnsArchitecture.Arm64
in emulated processes on Windows Arm 64-bit and macOS Apple Silicon systems.Type of breaking change
Reason for change
The previous behavior was incorrect.
Recommended action
Code that expects the process architecture should be changed to call
System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture
instead.Feature area
Interop
Affected APIs
System.Runtime.InteropServices.RuntimeInformation.OSArchitecture
The text was updated successfully, but these errors were encountered: