I have a DLL which require a little bit config block inside App.config
.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.18.0" newVersion="4.2.18.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
If I put the above config block my DLL stops executing in the middle and releases all the resources which is weird. On the other hand, if I try to do the same with a console app, it properly executes. Any suggestion please?