[wix-users] Is bindingRedirect possible for a managed bootstrapper application?

Julius Zint julius.zint at awin-software.de
Wed Apr 5 01:24:53 PDT 2017

This could be of use for you. There is a event fired when the runtime is 
not able to load a specific assembly.

You might be able to intercept there and load it yourself.

------ Originalnachricht ------
Von: "Gerhard Matzen" <gmatzen at osisoft.com>
An: "wix-users at lists.wixtoolset.org" <wix-users at lists.wixtoolset.org>
Gesendet: 05.04.2017 03:03:28
Betreff: [wix-users] Is bindingRedirect possible for a managed 
bootstrapper application?

>I have a managed bootstrapper application.  My payload contains 2 dlls.
>"a.dll" references Newtonsoft.Json 9.0.
>"b.dll" references Newtonsoft.Json 10.0.
>I tried adding...
>     <runtime>
>       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
>         <dependentAssembly>
>           <assemblyIdentity name="Newtonsoft.Json" 
>publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
>           <bindingRedirect oldVersion="" 
>newVersion="" />
>         </dependentAssembly>
>       </assemblyBinding>
>     </runtime>
>...to my BootstrapperCore.confi file.
>And I put the 10.0 version of newtonsoft.json.dll in the payload.
>But I still get an error similar to:
>PI AF Services 2017
>Could not load file or assembly 'Newtonsoft.Json, Version=, 
>Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its 
>dependencies. The system cannot find the file specified.
>Since the bootstrapper is native, I don't know if there is a good way 
>to do bindingRedirect.
>Does anyone know if adding a binding redirect is possible?
>WiX Toolset Users Mailing List provided by FireGiant 

More information about the wix-users mailing list