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 8739127 commit 7ad3c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NerdBank.GitVersioning/VersionOptions.cs
Expand Up @@ -10,6 +10,7 @@ namespace Nerdbank.GitVersioning
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 @@ -493,7 +494,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 7ad3c31

Please sign in to comment.