Skip to content

GetProcessorArchitecture in PSUtil.cs is not ported #4474

@iSazonov

Description

@iSazonov

GetProcessorArchitecture uses Windows native API to detect a processor architecture.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions