mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-12 19:25:00 +00:00
Fixing bug where net standard would complain about being unable to get attributes from simpl binaries
This commit is contained in:
@@ -254,7 +254,14 @@ namespace ICD.Common.Utils
|
||||
#if SIMPLSHARP
|
||||
return assembly.GetCustomAttributes(typeof(T), false).Cast<T>();
|
||||
#else
|
||||
return assembly.GetCustomAttributes<T>();
|
||||
try
|
||||
{
|
||||
return assembly.GetCustomAttributes<T>();
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
{
|
||||
return Enumerable.Empty<object>();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user