Skip to content

Commit

Permalink
Fix build warning after Newtonsoft.Json upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jul 12, 2022
1 parent e88d6ec commit 6a59593
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NerdBank.GitVersioning/VersionOptions.cs
Expand Up @@ -6,6 +6,7 @@
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using Validation;
using EditorBrowsableAttribute = System.ComponentModel.EditorBrowsableAttribute;
using EditorBrowsableState = System.ComponentModel.EditorBrowsableState;
Expand Down Expand Up @@ -594,7 +595,7 @@ public static JsonSerializerSettings GetJsonSettings(bool includeDefaults = fals
new VersionConverter(),
new SemanticVersionJsonConverter(),
new AssemblyVersionOptionsConverter(includeDefaults),
new StringEnumConverter() { CamelCaseText = true },
new StringEnumConverter() { NamingStrategy = new CamelCaseNamingStrategy() },
new FilterPathJsonConverter(repoRelativeBaseDirectory),
},
ContractResolver = new VersionOptionsContractResolver
Expand Down

0 comments on commit 6a59593

Please sign in to comment.