mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 04:26:57 +00:00
Fixing bug where net standard would complain about being unable to get attributes from simpl binaries
This commit is contained in:
parent
70c5f817c5
commit
4c4a7c2918
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue