How about NOT reinventing the wheel?

This commit is contained in:
JustArchi
2020-07-19 00:50:19 +02:00
parent 4d675f579d
commit 01027e4f35
2 changed files with 2 additions and 53 deletions

View File

@@ -38,7 +38,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
#if NETFRAMEWORK
using ArchiSteamFarm.Json;
using Newtonsoft.Json.Converters;
#endif
namespace ArchiSteamFarm.IPC {
@@ -245,7 +245,7 @@ namespace ArchiSteamFarm.IPC {
#if NETFRAMEWORK
// .NET Framework serializes Version as object by default, serialize it as string just like .NET Core
options.SerializerSettings.Converters.Add(new VersionStringConverter());
options.SerializerSettings.Converters.Add(new VersionConverter());
#endif
}
);