I've been reading and searching for how to make this work but I can't manage to get my app to reload or refresh it's loaded settings. This is a section I have in my exe.config:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Tekla.Structures.Model" publicKeyToken="2f04dbe497b71114" culture="neutral" />
<bindingRedirect oldVersion="17.0.0.0-99.1.0.0" newVersion="18.1.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
I need to change the newVersion to 18.0.0.0 which I can do easily. The problem is once I do, I can't get the app to load that information without starting the app from scratch manually.
I've tried all these combinations based on my searches but none seem to work:
System.Configuration.ConfigurationManager.RefreshSection("runtime");
System.Configuration.ConfigurationManager.RefreshSection("assemblyBinding");
System.Configuration.ConfigurationManager.RefreshSection("runtime/assemblyBinding");
System.Configuration.ConfigurationManager.RefreshSection("runtime/assemblyBinding/dependentAssembly");
System.Configuration.ConfigurationManager.RefreshSection("runtime/assemblyBinding/dependentAssembly/bindingRedirect");
What do I need to do to get this to reload?