From f2ecae38ece4302ee1ab5b12bacd33c70af5567d Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Wed, 19 Jun 2019 09:22:30 -0600 Subject: [PATCH] Rollback Newtonsoft.Json 12 upgrade Fixes #306 --- src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj | 2 +- src/NerdBank.GitVersioning/VersionOptions.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj b/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj index 86ce704e..374c0e29 100644 --- a/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj +++ b/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/NerdBank.GitVersioning/VersionOptions.cs b/src/NerdBank.GitVersioning/VersionOptions.cs index 8f0643d8..9ba71aff 100644 --- a/src/NerdBank.GitVersioning/VersionOptions.cs +++ b/src/NerdBank.GitVersioning/VersionOptions.cs @@ -7,7 +7,6 @@ using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Converters; - using Newtonsoft.Json.Serialization; using Validation; /// @@ -209,7 +208,7 @@ public static JsonSerializerSettings GetJsonSettings(bool includeDefaults = fals new VersionConverter(), new SemanticVersionJsonConverter(), new AssemblyVersionOptionsConverter(includeDefaults), - new StringEnumConverter() { NamingStrategy = new CamelCaseNamingStrategy() }, + new StringEnumConverter() { CamelCaseText = true }, }, ContractResolver = new VersionOptionsContractResolver {