RestSharp Assembly Binding

0

I am trying to map RestSharp 105.2.3.0 to RestSharp 106.5.4.0 using assembly binding, but it fails.

<dependentAssembly>
    <assemblyIdentity name="RestSharp" publicKeyToken="null" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-106.5.4.0" newVersion="106.5.4.0" />
</dependentAssembly>

I am using the version from nuGet:

  <package id="RestSharp" version="106.5.4" targetFramework="net472" />

Log entries:

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).

LOG: Attempting download of new URL file:///C:ConsoleClient/bin/Debug/RestSharp.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

c#
restsharp
asked on Stack Overflow Dec 29, 2020 by user1255637 • edited Dec 29, 2020 by marc_s

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0