Optimal add-in code base approach to target multiple Revit releases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Revit API add-in developers,
Is there a common or typical approach that third-party add-in developers use to have one code base that builds add-ins for many Revit releases?
If yes, can you please share an example?
Motivation: The next major release of the Revit API may target a different .NET development environment than Revit 2024. Therefore, the Revit development team would like to make an example application that multi-targets them both to demonstrate how one code base can build both add-ins. The goal will be to help customers supporting many Revit releases with one body of code.
Jeremy suggested: That sounds like a great idea and a very useful undertaking. Yes, there are numerous samples floating around illustrating various approaches to this. One problem might be to selecting the best choice. Here are a few that The Building Coder picked up:
- RevitLookup 2021 with Multi-Release Support -- https://thebuildingcoder.typepad.com/blog/2020/04/revitlookup-2021-with-multi-release-support.html
- PDF Export, ForgeTypeId and Multi-Target Add-In -- https://thebuildingcoder.typepad.com/blog/2021/04/pdf-export-forgetypeid-and-multi-target-add-in.htm...
- DLL as Resource and Multi-Version Add-Ins -- https://thebuildingcoder.typepad.com/blog/2021/10/dll-as-resource-and-multi-version-add-ins.html
- Managing Multiple Revit API Versions -- https://thebuildingcoder.typepad.com/blog/2023/11/net-core-preview-and-open-source-add-in-projects.h...
There are several more mentioned in the Revit API discussion forum and shared in various GitHub projects; searching the former for multi brings up one or two:
Some of the Revit templates on GitHub also support multi-version compilation:
Which approach do you prefer to implement a Revit add-in code base targeting multiple Revit releases?
Thank you!