diff --git a/ICD.Common.Utils/ReflectionUtils.cs b/ICD.Common.Utils/ReflectionUtils.cs index f707b5b..56fcf4e 100644 --- a/ICD.Common.Utils/ReflectionUtils.cs +++ b/ICD.Common.Utils/ReflectionUtils.cs @@ -274,17 +274,12 @@ namespace ICD.Common.Utils string fileNameWithOutExtension = IcdPath.GetFileNameWithoutExtension(path); -#if SIMPLSHARP - +#if !NETSTANDARD try { return Assembly.Load(new AssemblyName {Name = fileNameWithOutExtension}); } - catch (IOException) - { - return Assembly.LoadFrom(path); - } - catch (FileNotFoundException) + catch (Exception) { return Assembly.LoadFrom(path); }