如何重新映射汇编版本

jac*_*nad 12 .net c# visual-studio-2008

从调试到发布版本的切换会导致Visa设备停止工作并发出以下神秘警告:

目标ResolveAssemblyReferences:

考虑将程序集"Ivi.Visa.Interop,Culture = neutral,PublicKeyToken = a128c98f1d7717c1"的app.config重新映射从版本"3.0.0.0"[]到版本"3.2.0.0"[dll\Ivi.Visa.Interop.dll]到解决冲突,摆脱警告.C:\ Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets:警告MSB3247:发现同一依赖程序集的不同版本之间存在冲突.

VS2008项目中的Ivi.Visa.Interop引用属性表明该DLL是版本3.2.0.0.根据警告建议重新映射汇编版本的过程是什么?

use*_*608 1

我遇到的情况是:

{Final Class Library}<-{Dependent Class Library}<-{Referenced DLL}

具有{Referenced DLL}多个 GAC PublicKeyToken 匹配。

因此{Final Class Library}编译忽略了引用的版本{Dependent Class Library}并使用最高Version=值。这有输出No way to resolve conflict betweenChoosing ... arbitrarily

我只是在 中添加了{Final Class Library}{Referenced DLL}. 我对这个选项很满意,它看起来更简单。