We need to migrate from dotnet core 2.2 to dotnet core 3.1. We have an object which has a property of class System.Version. We didn't use VersionConverter while serialization and de-serialization with dotnet core 2.2. So the serialized object with dot net core 2.2 had serialized version output in the form {"Major":2,"Minor":0,"Build":20,"Revision":0,"MajorRevision":0,"MinorRevision":0}
without the use of VersionConverter
.
With dotnet core 3.1 the default serialization (Without the use of VersionConverter
) is 2.0.20.0
We have certain metadata already stored in the former format and other components of the system are also relying on it. Is there a way to continue with the former format for serialization and de-serialization (using newtonsoft) with the new dotnet core version 3.1 ? Currently we want to make the components across the system backward compatible and then onboard to the serialization and de-serialization with VersionConverter
.