-
Notifications
You must be signed in to change notification settings - Fork 8.3k
GetProcessorArchitecture in PSUtil.cs is not ported #4474
Copy link
Copy link
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productIssue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalitythe issue is for cleaning up the code with no impact on functionalityResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productIssue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalitythe issue is for cleaning up the code with no impact on functionalityResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
GetProcessorArchitecture uses Windows native API to detect a processor architecture.
This method is used in
ModuleCmdletBase.csto 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.