Skip to content

Commit

Permalink
Upadte NewtonSoft.Json to 13.0.2 (Azure#21479)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyunchi-ms authored Apr 11, 2023
1 parent c146d29 commit 402e27a
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/Az.autorest.hybrid.props
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@
</ItemGroup>

<!-- Assets -->
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
</ItemGroup>

<ItemGroup>
<ModuleCustomFiles Include="$(MSBuildThisFileDirectory)$(PsRootModuleName)\$(PsModuleFolder)\custom\**\*.*"/>
Expand Down
1 change: 0 additions & 1 deletion src/Az.autorest.hybrid.v2.props
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
<!-- Assets -->
<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Az.autorest.props
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
</ItemGroup>

<!-- Assets -->
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
</ItemGroup>

<ItemGroup>
<ModuleCustomFiles Include="$(MSBuildThisFileDirectory)$(PsModuleName)\custom\**\*.*"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<PackageReference Include="Microsoft.Azure.Management.DeviceProvisioningServices" Version="0.10.0-preview" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
4 changes: 0 additions & 4 deletions src/IotHub/IotHub/IotHub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
6 changes: 4 additions & 2 deletions src/Resources/ResourceManager/Extensions/JsonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;

using System;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -49,7 +51,7 @@ public static class JsonExtensions
Converters = new List<JsonConverter>
{
new TimeSpanConverter(),
new StringEnumConverter { CamelCaseText = false },
new StringEnumConverter(new DefaultNamingStrategy()),
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AdjustToUniversal },
},
};
Expand All @@ -67,7 +69,7 @@ public static class JsonExtensions
Converters = new List<JsonConverter>
{
new TimeSpanConverter(),
new StringEnumConverter { CamelCaseText = false },
new StringEnumConverter(new DefaultNamingStrategy()),
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AdjustToUniversal },
},
};
Expand Down
1 change: 0 additions & 1 deletion src/Resources/ResourceManager/ResourceManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<ItemGroup>

<PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="3.17.3-preview" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
</ItemGroup>

Expand Down
4 changes: 0 additions & 4 deletions src/Sql/Sql.LegacySdk/Sql.LegacySdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<RootNamespace>Microsoft.Azure.Management.$(PsModuleName).Legacy</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" PrivateAssets="all" />
</ItemGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
Binary file removed src/lib/Newtonsoft.Json.9.dll
Binary file not shown.
Binary file modified src/lib/netfx/Newtonsoft.Json.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions tools/Common.Netcore.Dependencies.Test.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReference Include="xunit.runner.console" Version="2.4.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.5.0" />
<Reference Include="System.Net.Http" />
<PackageReference Include="Newtonsoft.Json" version="10.0.3" />
<PackageReference Include="Newtonsoft.Json" version="13.0.2" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.2.0" />
</ItemGroup>

Expand All @@ -34,7 +34,7 @@
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<!-- version of SDK should reference https://docs.microsoft.com/en-us/powershell/azure/what-is-azure-powershell -->
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.4" IncludeAssets="All" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion tools/Common.Netcore.Dependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.73-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.73-preview"/>
<PackageReference Include="Microsoft.Azure.PowerShell.Common.Share" Version="1.3.73-preview"/>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.30.0"/>
Expand All @@ -39,6 +40,6 @@
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.73-preview\tools\</StorageToolsPath>
</PropertyGroup>
<ItemGroup Condition="'$(OmitJsonPackage)' != 'true'">
<PackageReference Include="Newtonsoft.Json" Version="10.0.3"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2"/>
</ItemGroup>
</Project>

0 comments on commit 402e27a

Please sign in to comment.