Assembly * uses *, which has a higher version than the assembly reference

I get the following error:

Assembly 'Jenkins.Core, Version = 2.1.2.22051, Culture = neutral, PublicKeyToken = 2f531e0c1c11a32b' uses 'Jenkins.Domain, Version = 2.1.1.22051, Culture = neutral, PublicKeyToken = 2f531e0c1c11a32b', which has a higher version than the reference assembly 'Jenkins.Domain, Version = 2.1.1.22017, Culture = neutral, PublicKeyToken = 2f531e0c1c11a32b'

I tried adding the following bindRedirect to app.config, but nothing changed :(

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Jenkins.Domain" publicKeyToken="2f531e0c1c11a32b" culture="neutral"/>
    <bindingRedirect oldVersion="0.0.0.0-2.1.1.22051" newVersion="2.1.1.22017"/>
  </dependentAssembly>
</assemblyBinding>

These are two nuget packages and yes, I assume that nugets were not updated together, but this is not under my control (and they are both updated).

This seems like a very simple bindingRedirect application, but I can't get it to work.

:)

+4
1

, , newVersion="2.1.1.22051".

, nuget, 2.1.1.22051, DLL, , dll /Packages .

-1

Source: https://habr.com/ru/post/1611940/


All Articles