我有两个库(月亮APNS,tweetsharp)。每个库中有newtonsoft.json.dll但不同版本的引用的C#应用程序...我的应用程序成功打造而是一个库工作正常,另一个抛出异常(无法找到dll文件)。
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 successfully but one library works fine and the other one throws an exception ( can't find the dll file ).
我想,当我建立只有一个版本转到bin文件夹,但我不知道是什么做的。
I think that when i build only one version goes to the bin folder, but i don't know what to do.
在此先感谢。
推荐答案您可以强制这两个库使用集绑定在你的app.config或web.config文件重定向。显然,这只是工作,只要库版本是兼容的。
You can force both libraries to reference the same version by using Assembly Binding Redirects in your app.config or web.config. Obviously this only works as long as the library versions are compatible.
更多推荐
使用不同版本的DLL文件在一个应用程序
发布评论