- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm writing a Revit add-in that depends on a number of third party DLLs. Several of these DLLs (updated to the latest versions via NuGet) are compiled against older .NET assemblies, requiring use of bindingRedirects to redirect the .NET runtime to the appropriate assembly version. This workaround is appropriate for developers producing .exe executables, but not for those producing DLLs (including Revit Add-Ins - source), as bindingRedirects are run for the hosting application only (Revit.exe). I was able to temporarily solve this problem by appending my Add-In's bindingRedirects to Revti.exe.config. That said, requiring Add-Ins to make modifications to Revit.exe.config seems like a dangerous, brittle solution for production environments. Is there a more robust way to handle this bindingRedirect dependency problem for Revit Add-Ins? Should IExternalApplications modify/revert Revit.exe.config changes onStartup/onShutdown?
Thanks in advance!
Solved! Go to Solution.