You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GetProcessorArchitecture in PSUtil.cs is not ported #4474
Issue-BugIssue has been identified as a bug in the productIssue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime
This method is used in ModuleCmdletBase.cs to test the required process architecture, and thus that code is broken on Unix platforms as GetProcessorArchitecture depends on a win32 API to get process architecture.
We should use CoreFX API [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.
Issue-BugIssue has been identified as a bug in the productIssue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime
Activity
iSazonov commentedon May 9, 2018
Seems we can catch more problems with the code - I see CoreFX has a workaround for Win8/8.1.
Perhaps this is a rare case but someone might fall into this.
/cc Steve Lee (@SteveL-MSFT)