UPDATE:
I found the ability to do assemblyBinding based on the framework version.
Now curious if there a way to specify a range of versions, rather than a specific one?
I had a case where I needed to reference specific assemblies at runtime. I added the following section to the app.config file. However, a client upgraded to a newer version of the CRL (4.8). Apparently, this caused a conflict with the config section. Is there a way to dynamically reference DLLs (assemblies) based on CLR version?
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral"/>
<codeBase version="14.0.0.0" href="<interface path>/Microsoft/Version 14_0_0_0/Microsoft.SqlServer.Types.dll"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.Common" publicKeyToken="89845dcd8080cc91" culture="neutral"/>
<codeBase version="15.0.0.0" href="<interface path>/Microsoft/Version 15_0_0_0/Microsoft.ReportViewer.Common.DLL"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.ProcessingObjectModel" publicKeyToken="89845dcd8080cc91" culture="neutral"/>
<codeBase version="15.0.0.0" href="<interface path>/Microsoft/Version 15_0_0_0/Microsoft.ReportViewer.ProcessingObjectModel.dll"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.WinForms" publicKeyToken="89845dcd8080cc91" culture="neutral"/>
<codeBase version="15.0.0.0" href="<interface path>/Microsoft/Version 15_0_0_0/Microsoft.ReportViewer.Winforms.DLL"/>
</dependentAssembly>
</assemblyBinding>
</runtime>