Skip to content

Commit 6e793d6

Browse files
Bump Newtonsoft.Json from 9.0.1 to 13.0.1 in /src/NerdBank.GitVersioning (#777)
* Bump Newtonsoft.Json from 9.0.1 to 13.0.1 in /src/NerdBank.GitVersioning Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 9.0.1 to 13.0.1. - [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases) - [Commits](JamesNK/Newtonsoft.Json@9.0.1...13.0.1) --- updated-dependencies: - dependency-name: Newtonsoft.Json dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Fix build warning after Newtonsoft.Json upgrade Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Arnott <[email protected]>
1 parent 6463ef6 commit 6e793d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="LibGit2Sharp" Version="0.27.0-preview-0158" PrivateAssets="none" />
1414
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
1515
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.478-beta" PrivateAssets="all" />
16-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
16+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1717
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="all" />
1818
<PackageReference Include="Validation" Version="2.5.51" />
1919
<PackageReference Include="Nerdbank.GitVersioning.LKG" Version="3.4.173-alpha" />

src/NerdBank.GitVersioning/VersionOptions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace Nerdbank.GitVersioning
1010
using System.Reflection;
1111
using Newtonsoft.Json;
1212
using Newtonsoft.Json.Converters;
13+
using Newtonsoft.Json.Serialization;
1314
using Validation;
1415
using EditorBrowsableAttribute = System.ComponentModel.EditorBrowsableAttribute;
1516
using EditorBrowsableState = System.ComponentModel.EditorBrowsableState;
@@ -493,7 +494,7 @@ public static JsonSerializerSettings GetJsonSettings(bool includeDefaults = fals
493494
new VersionConverter(),
494495
new SemanticVersionJsonConverter(),
495496
new AssemblyVersionOptionsConverter(includeDefaults),
496-
new StringEnumConverter() { CamelCaseText = true },
497+
new StringEnumConverter() { NamingStrategy = new CamelCaseNamingStrategy() },
497498
new FilterPathJsonConverter(repoRelativeBaseDirectory),
498499
},
499500
ContractResolver = new VersionOptionsContractResolver

0 commit comments

Comments
 (0)