- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I am writing a plugin which is supposed to support Revit Versions since 2020. By now it supports 2023 version and works on .NET 4.8 which causes crashes on exiting Revit in older version. A simple change of .NET version to 4.7.2 blocks building the binaries because the RevitAPI*.dll files referenced as assemblies come from 2023 version and are not compatible with older .NET versions. I could get older RevitAPI*.dll files instead but I wanted to know what is the best way to handle this in such a way that if some feature of the plugin is doable in 2023 only it would work in 2023 but the older versions would just have it blocked instead of getting crashed. Of course separate codes for each version are not an option.
All the best
Solved! Go to Solution.