Skip to content

Raise minimum version of PowerShell Core from 6.0.2 to 6.1.0 or 6.1.3 #1159

Closed
@bergmeister

Description

@bergmeister

Currently the minimum version of PSCore required by PSSA is 6.0.2 (because previous Nuget packages of SMA had a bug).
Due to PSCore 6.0 reaching its end of life this month (as far as I am aware), should we bump the minimum required version to 6.1.0. or even 6.1.3?
We have 2 places in code that we'd adapt:

  • The smoke check here to give a user facing message
    if ($PSVersionTable.PSVersion -lt [version]'6.0.2') {
    throw "Minimum supported version of PSScriptAnalyzer for PowerShell Core is 6.0.2 but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
  • The SMA reference here (PSSA is not on PowerShellStandard, which is non-trivial to start to use in this repo and would be a bigger task)
    <PackageReference Include="System.Management.Automation" Version="6.0.2" />

Any opinions @JamesWTruher @rjmholt @SteveL-MSFT ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions