.Net dll reference - deployment onto PCs with different versions of 3rd party dll

限于喜欢 提交于 2019-12-06 16:13:09
Marcel N.

You can build always against the 1.0.0 3rd party assembly and then do a binding redirect (in your app config) to use the 2.0.0 version, if available.

See here: http://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.100).aspx for more details.

Some more samples here: http://blogs.msdn.com/b/thottams/archive/2007/01/30/introduction-to-versioning-and-bindingredirect.aspx?Redirected=true.

A SO post also describes a common problem when setting up binding redirection: Assembly binding redirect does not work.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!