From 0715dd31bf7c8593738f4462238afaacedfd8abe Mon Sep 17 00:00:00 2001 From: watanabe_satoshi Date: Mon, 5 Jul 2021 18:41:31 +0900 Subject: [PATCH] fix BadImageFormatException --- .../Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs index 34ff1e2..77d998f 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs @@ -148,7 +148,7 @@ namespace Cysharp.Threading.Tasks.Internal foreach (var candidateMethod in methods) { - var attributes = candidateMethod.GetCustomAttributes(); + var attributes = candidateMethod.GetCustomAttributes(false); if (attributes == null) { continue;