From 9a17bffab7d93f223c47a3f79d3c91e38bf31eec Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Thu, 9 Jan 2025 15:24:30 +0000 Subject: [PATCH] Add custom assembly resolve for Navisworks --- .../Plugin/DockableConnectorPane.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Connectors/Navisworks/Speckle.Connectors.NavisworksShared/Plugin/DockableConnectorPane.cs b/Connectors/Navisworks/Speckle.Connectors.NavisworksShared/Plugin/DockableConnectorPane.cs index b779afe43..5dacdd9e8 100644 --- a/Connectors/Navisworks/Speckle.Connectors.NavisworksShared/Plugin/DockableConnectorPane.cs +++ b/Connectors/Navisworks/Speckle.Connectors.NavisworksShared/Plugin/DockableConnectorPane.cs @@ -32,6 +32,8 @@ internal sealed class Connector : NAV.Plugins.DockPanePlugin public override Control CreateControlPane() { + AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolver.OnAssemblyResolve; + var services = new ServiceCollection(); services.Initialize(HostApplications.Navisworks, HostAppVersion.v2024);