From 4c4a7c2918ace38f31b9f992515ecdfb43b951e9 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 5 Oct 2017 17:18:12 -0400 Subject: [PATCH] Fixing bug where net standard would complain about being unable to get attributes from simpl binaries --- ICD.Common.Utils/ReflectionUtils.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/ReflectionUtils.cs b/ICD.Common.Utils/ReflectionUtils.cs index 8f52c17..66e4515 100644 --- a/ICD.Common.Utils/ReflectionUtils.cs +++ b/ICD.Common.Utils/ReflectionUtils.cs @@ -254,7 +254,14 @@ namespace ICD.Common.Utils #if SIMPLSHARP return assembly.GetCustomAttributes(typeof(T), false).Cast(); #else - return assembly.GetCustomAttributes(); + try + { + return assembly.GetCustomAttributes(); + } + catch (FileNotFoundException) + { + return Enumerable.Empty(); + } #endif }