Skip to content

GetProcessorArchitecture in PSUtil.cs is not ported #4474

Closed

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.

Activity

  1. added
    WG-Engine
    Issue-Code Cleanup
    on Aug 3, 2017
  2. iSazonov commented on May 9, 2018

    @iSazonov
    CollaboratorAuthor

    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)

  3. added
    Issue-Bug
    on May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue-Code CleanupResolution-FixedWG-Engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions