一个项目可以使用2个不同版本的同一个DLL? (Sybase.AdoNet 2和4)
我升级一些老服务。它使用某些DLL被引用,我将引用Sybase.AdoNet4.AseClient Sybase.AdoNet2.AseClient但新的DLL。我不断收到错误说:主要的版本不匹配sybdrvado20.dll。期待主版本'2'。加载版本1和VIS-反之亦然。
I am upgrading some old services. Some dlls it's using are referencing Sybase.AdoNet2.AseClient but new dlls that I am adding reference Sybase.AdoNet4.AseClient. I keep getting errors saying "Major version mismatch sybdrvado20.dll. Expecting major version '2'. Loaded version 1" and vis-versa.
有谁知道我怎么能解决这个问题?难道仅仅是不可能的一个项目,以引用预期不同版本的DLL动态链接库的?
Does anyone know how I can resolve this issue? Is it just not possible for a project to reference dlls that expect different versions of a dll?
谢谢
参考这两个组件和改变一个人的Alias属性。你可以在这里找到更多的信息:
Reference both assemblies and change the Alias property of one. You can find more information here: