From f11a17913fbbe383a9dc5f2d569686288be6f3c3 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Fri, 16 Aug 2024 11:56:35 +0100 Subject: [PATCH] Swallow an exception specific for .NET Core and other plugins (#3613) --- ConnectorCore/DllConflictManagement/DllConflictManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ConnectorCore/DllConflictManagement/DllConflictManager.cs b/ConnectorCore/DllConflictManagement/DllConflictManager.cs index 3921b8ee36..6d38c00fc4 100644 --- a/ConnectorCore/DllConflictManagement/DllConflictManager.cs +++ b/ConnectorCore/DllConflictManagement/DllConflictManager.cs @@ -157,6 +157,11 @@ private static bool MajorAndMinorVersionsEqual(Version version1, Version version // is core which will be checked as a dependency of many other libraries. // there are a couple other random types that will trigger this exception as well } + catch (FileLoadException) + { + // this is new for .NET Core and is invalid for Speckle assemblies. Not catching causes other issues + // with other plugins so swallowing is the best we can do. + } return null; }