Skip to content

Commit dce4119

Browse files
authored
Raise minimum required PS version of PS 6 to 6.1.0 due to 6.0 running out of support now and update Newtonsoft.Json to 11.0.2 (#1165)
* Raise minimum required PS version of PS 6 to 6.1.0 due to 6.0 running out of support now * Update version of Newtonsoft.Json to 11.0.2
1 parent 944c5be commit dce4119

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Engine/Engine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</ItemGroup>
6363

6464
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
65-
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
65+
<PackageReference Include="System.Management.Automation" Version="6.1.0" />
6666
</ItemGroup>
6767

6868
<ItemGroup Condition="'$(TargetFramework)' == 'net452' AND '$(Configuration)' == 'PSV3Release' AND '$(Configuration)' != 'PSV4Release'">

Engine/PSScriptAnalyzer.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ $binaryModuleRoot = $PSModuleRoot
1313

1414
if (($PSVersionTable.Keys -contains "PSEdition") -and ($PSVersionTable.PSEdition -ne 'Desktop')) {
1515
$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath 'coreclr'
16-
if ($PSVersionTable.PSVersion -lt [version]'6.0.2') {
17-
throw "Minimum supported version of PSScriptAnalyzer for PowerShell Core is 6.0.2 but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
16+
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."
1818
}
1919
}
2020
elseif ($PSVersionTable.PSVersion.Major -eq 5) {

PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
21-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
21+
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
2222
</ItemGroup>
2323

2424
</Project>

Rules/Rules.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<ItemGroup>
1212
<ProjectReference Include="..\Engine\Engine.csproj" />
13-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
13+
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1414
</ItemGroup>
1515

1616
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">

0 commit comments

Comments
 (0)