Skip to content

Commit 7395250

Browse files
authored
Use latest Newtonsoft.Json version for Windows PowerShell builds and not exclude it any more in Dependabot (#1825)
* Update Microsoft.PowerShell.CrossCompatibility.csproj * Update Rules.csproj * Update dependabot.yml
1 parent b881aff commit 7395250

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ updates:
1313
- "bergmeister"
1414
ignore:
1515
- dependency-name: "System.Management.Automation"
16-
- dependency-name: "Newtonsoft.Json"
1716
- dependency-name: "PowerShellStandard.Library"

PSCompatibilityCollector/Microsoft.PowerShell.CrossCompatibility/Microsoft.PowerShell.CrossCompatibility.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
14+
<!-- The version of Newtonsoft.Json needs to be newer than the version in the oldest supported version of PowerShell 7: https://github.com/PowerShell/PowerShell/blob/v7.0.11/src/System.Management.Automation/System.Management.Automation.csproj#L15 -->
15+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1416
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
1517
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
1618
<PackageReference Include="PowerShellStandard.Library" Version="3.0.0-preview-02" />
1719
</ItemGroup>
1820

1921
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
22+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2023
<PackageReference Include="Microsoft.PowerShell.3.ReferenceAssemblies" Version="1.0.0" />
2124
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0" />
2225
</ItemGroup>
2326

2427
<ItemGroup>
2528
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
26-
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2729
</ItemGroup>
2830

2931
</Project>

Rules/Rules.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@
1313
<ItemGroup>
1414
<ProjectReference Include="..\Engine\Engine.csproj" />
1515
<ProjectReference Include="..\PSCompatibilityCollector\Microsoft.PowerShell.CrossCompatibility\Microsoft.PowerShell.CrossCompatibility.csproj" />
16-
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
16+
1717
</ItemGroup>
1818

1919
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
20+
<!-- The version of Newtonsoft.Json needs to be newer than the version in the oldest supported version of PowerShell 7: https://github.com/PowerShell/PowerShell/blob/v7.0.11/src/System.Management.Automation/System.Management.Automation.csproj#L15 -->
21+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2022
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.7.0" />
2123
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
2224
<PackageReference Include="Pluralize.NET" Version="1.0.2" />
2325
</ItemGroup>
2426

2527
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
28+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2629
<Reference Include="System.ComponentModel.Composition" />
2730
<Reference Include="System.Data.Entity.Design" />
2831
</ItemGroup>

0 commit comments

Comments
 (0)