C# 提供BindingRedirect时,程序集的两个版本之间存在冲突

C# 提供BindingRedirect时,程序集的两个版本之间存在冲突,c#,.net,visual-studio-2013,assembly-binding-redirect,C#,.net,Visual Studio 2013,Assembly Binding Redirect,在构建项目时,我收到了关于引用的程序集的不同版本的警告。将project build output设置为detailed会显示问题: There was a conflict between "Microsoft.ServiceBus, Version=1.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, Pub

在构建项目时,我收到了关于引用的程序集的不同版本的警告。将project build output设置为detailed会显示问题:

There was a conflict between "Microsoft.ServiceBus, Version=1.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
我理解这意味着解决方案某些部分中的某些引用需要v1.5.0.0,而某些引用需要v1.8.0.0。好的我们将全部使用1.8.0.0。因此,我向web.config添加了一个绑定重定向:

<dependentAssembly>
    <assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
    <bindingRedirect oldVersion="0.0.0.0-1.8.0.0" newVersion="1.8.0.0"/>
</dependentAssembly>

但解决方案仍然会在构建时生成相同的警告


重定向是否应该解决此问题?

您的解决方案是否包含多个项目?是否在web项目中发出警告?有多个项目,但web应用是唯一引用Microsoft.ServiceBus的项目。publicKeyToken是否区分大小写?