'Convert BinaryFormatter into Protobuf.net
With MS removing support for BinaryFormatter in .net 6 and completely removing in .net 8 we have decided to change to Protobuf-net.
Our current use case is that when users save their project data it uses the BinaryFormatter to serialise all project data to disk for later retrieval.
My question is has anyone had success in converting users already serialized data (BinaryFormatter) into Protobuf-net
I am looking to see if there are recommendations/patterns on how to automatically uplift the serialized data into the new format.
Initially I am thinking a separate console application that dynamically loads the old assemblies, deserializes the project data into memory objects and then swap out the old assemblies for the updated protobuf-net version and serialize back to disk.
Thanks for any assistance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
