Skip to content

Parse Error in PS5 #135

@dan-hughes

Description

@dan-hughes

Module does not load in PowerShell 5.1, it seems to be unhappy with the below.

Version = if (($V = $BuildInfo.SemVer.Split("+")[0].Split("-", 2)[0])) {
[version]$V
}

Run Import-Module in PS5 to reproduce. PS7 is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions