From 6ebde36f77a4bd473a7bd027f30c615b390ee941 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Mon, 4 Mar 2019 20:02:50 +0000 Subject: [PATCH 1/2] Raise minimum required PS version of PS 6 to 6.1.0 due to 6.0 running out of support now --- Engine/Engine.csproj | 2 +- Engine/PSScriptAnalyzer.psm1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/Engine.csproj b/Engine/Engine.csproj index 0864d1e64..970bc7990 100644 --- a/Engine/Engine.csproj +++ b/Engine/Engine.csproj @@ -62,7 +62,7 @@ - + diff --git a/Engine/PSScriptAnalyzer.psm1 b/Engine/PSScriptAnalyzer.psm1 index ca4a76283..8c55c1d7e 100644 --- a/Engine/PSScriptAnalyzer.psm1 +++ b/Engine/PSScriptAnalyzer.psm1 @@ -13,8 +13,8 @@ $binaryModuleRoot = $PSModuleRoot if (($PSVersionTable.Keys -contains "PSEdition") -and ($PSVersionTable.PSEdition -ne 'Desktop')) { $binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath 'coreclr' - 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." + if ($PSVersionTable.PSVersion -lt [Version]'6.1.0') { + throw "Minimum supported version of PSScriptAnalyzer for PowerShell Core is 6.1.0 but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core." } } elseif ($PSVersionTable.PSVersion.Major -eq 5) { From 2d0b8fb337376898f34370c33d822dc6470e1505 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Mon, 4 Mar 2019 20:13:45 +0000 Subject: [PATCH 2/2] Update version of Newtonsoft.Json to 11.0.2 --- .../Microsoft.PowerShell.CrossCompatibility.csproj | 2 +- Rules/Rules.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj b/PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj index 1d401cea2..8e0cf8279 100644 --- a/PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj +++ b/PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj @@ -18,7 +18,7 @@ - + diff --git a/Rules/Rules.csproj b/Rules/Rules.csproj index 30a717d5a..63f08609a 100644 --- a/Rules/Rules.csproj +++ b/Rules/Rules.csproj @@ -10,7 +10,7 @@ - +