BinaryFormatter.Deserialize “unable to find assembly” after ILMerge

前端 未结 10 1095
囚心锁ツ
囚心锁ツ 2020-12-14 20:53

I have a C# solution with a referenced dll (also C# with the same .Net version). When I build the solution and run the resulting exe, without merging the exe and the refere

10条回答
  •  误落风尘
    2020-12-14 21:36

    You may have serialized that from the separate assembly and then tried to deserialize it with another assembly (or a newer version of the same assembly).

    Some discussion here

提交回复
热议问题