commit b01ef07ac354a4e01751e93b563b212758aaf725 parent f9812eb69a94d229aa4e20972bb18dd07e428931 Author: Kaleb Luedtke <trenlymc@gmail.com> Date: Fri, 7 Feb 2025 12:46:10 -0600 Update Newtonsoft.Json to be same version across all projects (#5158) According to the NuGet management tools in Visual Studio, `Newtonsoft.Json` had different versions being used across different projects within the solution. This PR bumps them all to the same version, moving some from `13.0.2` up to `13.0.3`. In the cases where the version specification was added, it is due to the package being a transient dependency Diffstat:
8 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/ConfigurationRemotingServer/ConfigurationRemotingServer.csproj b/src/ConfigurationRemotingServer/ConfigurationRemotingServer.csproj @@ -27,6 +27,10 @@ <Import Project="..\targets\ReferenceEmbeddedCsWinRTProject.targets" /> <ItemGroup> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> + </ItemGroup> + + <ItemGroup> <ProjectReference Include="..\Microsoft.Management.Configuration.Processor\Microsoft.Management.Configuration.Processor.csproj" /> <ProjectReference Include="..\Microsoft.Management.Configuration\Microsoft.Management.Configuration.vcxproj" /> </ItemGroup> diff --git a/src/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj b/src/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj @@ -47,6 +47,7 @@ <PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.6" GeneratePathProperty="true"> <ExcludeAssets>contentFiles</ExcludeAssets> </PackageReference> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118"> <PrivateAssets>all</PrivateAssets> </PackageReference> diff --git a/src/Microsoft.Management.Configuration.UnitTests/Microsoft.Management.Configuration.UnitTests.csproj b/src/Microsoft.Management.Configuration.UnitTests/Microsoft.Management.Configuration.UnitTests.csproj @@ -20,6 +20,7 @@ <ItemGroup> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="System.Net.Http" Version="4.3.4" /> <PackageReference Include="System.Private.Uri" Version="4.3.2" /> <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" /> diff --git a/src/PowerShell/Microsoft.WinGet.Client.Cmdlets/Microsoft.WinGet.Client.Cmdlets.csproj b/src/PowerShell/Microsoft.WinGet.Client.Cmdlets/Microsoft.WinGet.Client.Cmdlets.csproj @@ -35,6 +35,7 @@ </ItemGroup> <ItemGroup> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="all" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118"> <PrivateAssets>all</PrivateAssets> diff --git a/src/PowerShell/Microsoft.WinGet.Client.Engine/Microsoft.WinGet.Client.Engine.csproj b/src/PowerShell/Microsoft.WinGet.Client.Engine/Microsoft.WinGet.Client.Engine.csproj @@ -51,7 +51,7 @@ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" /> - <PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Microsoft.CSharp" Version="4.7.0" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" /> <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.6" Condition="'$(TargetFramework)' == '$(CoreFramework)'" /> <PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.22000.196" PrivateAssets="all" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" /> @@ -117,7 +117,7 @@ </EmbeddedResource> </ItemGroup> - <Import Project="..\..\targets\EmbeddedCsWinRT.targets" Condition="'$(TargetFramework)' == '$(CoreFramework)'" /> + <Import Project="..\..\targets\EmbeddedCsWinRT.targets" Condition="'$(TargetFramework)' == '$(CoreFramework)'" /> <PropertyGroup Condition="'$(TargetFramework)' == '$(CoreFramework)'"> <CsWinRTIncludes> diff --git a/src/PowerShell/Microsoft.WinGet.Configuration.Cmdlets/Microsoft.WinGet.Configuration.Cmdlets.csproj b/src/PowerShell/Microsoft.WinGet.Configuration.Cmdlets/Microsoft.WinGet.Configuration.Cmdlets.csproj @@ -30,6 +30,7 @@ </ItemGroup> <ItemGroup> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="all" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118"> <PrivateAssets>all</PrivateAssets> diff --git a/src/PowerShell/Microsoft.WinGet.Configuration.Engine/Microsoft.WinGet.Configuration.Engine.csproj b/src/PowerShell/Microsoft.WinGet.Configuration.Engine/Microsoft.WinGet.Configuration.Engine.csproj @@ -30,6 +30,7 @@ </ItemGroup> <ItemGroup> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="all" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118"> <PrivateAssets>all</PrivateAssets> diff --git a/src/WinGetUtilInterop.UnitTests/WinGetUtilInterop.UnitTests.csproj b/src/WinGetUtilInterop.UnitTests/WinGetUtilInterop.UnitTests.csproj @@ -6,7 +6,7 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Microsoft.ApplicationInsights" Version="2.21.0" /> <PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" /> <PackageReference Include="Microsoft.Msix.Utils" Version="2.1.1" />