You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Newtonsoft json to 12.0.1 due to PowerShell 6.1 going out of support (#1336)
* Upgrade NewtonSoft.Json to the version that PS 6.2.1 ships with as PS 6.1 is going out of support now
* Upgrade AppVeyor image to use PS 6.2
* Downgrade to PS 6.2.0 as a minimum PS version due to AppVeyor
if ($PSVersionTable.PSVersion-lt [Version]'6.1.0') {
17
-
throw"Minimum supported version of PSScriptAnalyzer for PowerShell Core is 6.1.0 but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
16
+
# Minimum PowerShell Core version given by PowerShell Core support itself and
17
+
# also the version of NewtonSoft.Json implicitly that PSSA ships with,
18
+
# which cannot be higher than the one that PowerShell ships with.
19
+
[Version] $minimumPowerShellCoreVersion='6.2.0'
20
+
if ($PSVersionTable.PSVersion-lt$minimumPowerShellCoreVersion) {
21
+
throw"Minimum supported version of PSScriptAnalyzer for PowerShell Core is $minimumPowerShellCoreVersion but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
Copy file name to clipboardexpand all lines: PSCompatibilityCollector/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj
0 commit comments