BinaryFormatter.Deserialize “unable to find assembly” after ILMerge

前端 未结 10 1094
囚心锁ツ
囚心锁ツ 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:18

    For anyone having this issue, trying to deserialize from a different assembly, I found this solution which seems to great for me using a small "BindChanger" class with a shared namespace for the Object type in question. https://www.daniweb.com/programming/software-development/threads/339638/deserializing-in-a-different-assembly

提交回复
热议问题