I get warnings when creating a project about different versions of the referenced link. Setting output of the project assembly to the details shows me the problem:
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"
I understand that some links require v1.5.0.0 in some parts of the solution, and some require v1.8.0.0. Good. We will use 1.8.0.0 for everyone. Therefore, I added binding redirects to 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>
But the solution still generates the same warning during assembly.
Should the redirection not take care of this?
source
share