-
Notifications
You must be signed in to change notification settings - Fork 396
Closed
Labels
Description
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
PSScriptAnalyzer/Engine/PSScriptAnalyzer.psm1
Lines 16 to 17 in 7d850bb
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)
PSScriptAnalyzer/Engine/Engine.csproj
Line 65 in 7d850bb
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
Any opinions @JamesWTruher @rjmholt @SteveL-MSFT ?