Use different versions of dll file in one app

后端 未结 2 1449
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 03:50

I have an c# application with two libraries ( moon-apns, tweetsharp ) .. Each library has a reference for newtonsoft.json.dll but different versions ... My app build success

2条回答
  •  感情败类
    2020-12-19 04:37

    Since you stated you have access to the source of the two libraries:

    In both projects, set the reference to newtonsoft to not required Specific Version. Rebuild those projects.

    Now, when you build your main project, the two libraries should be ok with the same version of the newtonsoft DLL as long as there is no compatibility issues

提交回复
热议问题