Is there a way to replace the DLL while Revit is open during the build process? #49
-
Thank you for an amazing open-source project. It helps in configuring code in a professional manner and makes it easier to extend the code. However, I have a problem when running/debugging as opening and closing Revit takes quite a lot of time during the coding process. Could you please help me with one or a few approaches to work more quickly and efficiently without having to open/close Revit continuously when running/debugging? When I first started with a standalone DLL to access the Revit API, I used to run the DLL through the Add-in Manager. But when configuring with Host/DI for ExternalApplication, I can’t use that approach because the Host is executing in Application.cs, inheriting ExternalApplication. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Many thanks) Using Host/DI the only option is to use Hot Reload or restart Revit. Hot Reload covers most cases. Starting with .Net 8 (Revit 2025) you can create a container in AssemblyLoadContext and configure its unloading. Another option is to set a dynamic name when building so Revit sees it as a new plugin |
Beta Was this translation helpful? Give feedback.
Many thanks) Using Host/DI the only option is to use Hot Reload or restart Revit. Hot Reload covers most cases. Starting with .Net 8 (Revit 2025) you can create a container in AssemblyLoadContext and configure its unloading. Another option is to set a dynamic name when building so Revit sees it as a new plugin