I have a dll written in C# which contains only data classes. These classes are filled reading the datas from a file.
I need to use this library within two or more applications, which are deployed separately, so they can contain different versions of the dll.
The file from which data are read is aligned with one application, but not with the others.
In this situation, if an application reads a file which contains a newer version, it can crash during runtime.
What are the best practices to deal with a problem like that?