Skip to content

Auth Module Dependencies #325

Closed
Closed

Description

@georgend

Auth has a dependency issue with Microsoft.PowerShell.Commands.Utility -

<PackageReference Include="Microsoft.PowerShell.Commands.Utility" Version="6.0.4" />
This can be repro'd by running the following in a Windows PowerShell session:
Import-Module .\msgraph-sdk-powershell\src\Authentication\Authentication\Microsoft.Graph.Authentication.psd1

Microsoft.PowerShell.Commands.Utility is PowerShell core (6+) only dependency and won't work in PowerShell 5.1. Looking at the src code, It looks like we are only using it to detect the host platform. Is it possible to use these platform helpers instead? These helpers are cross platform as well, and work in both PS 5 and 6+.
Import-Module ..\msgraph-sdk-powershell\src\Authentication\Authentication\Microsoft.Graph.Authentication.psd1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions