Binary Deserialization with different assembly version

前端 未结 5 788
名媛妹妹
名媛妹妹 2020-12-14 07:07

I have a project which uses BinaryFormatter to serialize a collection of structs with string and bool? datatypes.

The serialization/deserialization works fine, howev

5条回答
  •  情歌与酒
    2020-12-14 07:53

    The GAC is your first resource, allowing different versions of the assembly to co-exist side-by-side. But that doesn't really solve anything unless your app is version tolerant too. Binary serialization has several features to handle version tolerant serialization. Read about it in this MSDN library article.

提交回复
热议问题