Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Assembly Binding Redirect

Aleksander Sjåfjell edited this page Oct 14, 2016 · 2 revisions

For å redirecte avhengigheter så kan vi gjøre magi slik som dette:

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="ApiClientShared" publicKeyToken="683b8efceae684a6" culture="neutral" />
        <bindingRedirect oldVersion="1.0.5968.19413" newVersion="1.1.0.24133" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

Her sier vi at ApiClientShared versjon 1.0.5968.19413 skal redirectes til versjon 1.1.0.24133.

Fun fact: Bruk denne for å hente assembly info.

Clone this wiki locally