I have a windows application that uses Excel-Addin using Excel DNA and targets CLR 2.0 and works fine with Office Excel up to Office 2013 64 bit, but we have found that when deploying to a machine with Office 2016 64 bit, Excel DNA complains that it cannot find a CLR 4.0 installation and so aborts the installation.
Without creating 2 instances of the project one that targets CLR 2.0 and the other one CLR 4.0 due to features and fixes this will become a maintenance nightmare.
Is there any way to create one version of the project where Excel DNA will target the appropriate CLR.