From 0353c8dc04d19acc9b3f23536064ddbe61fe1dc2 Mon Sep 17 00:00:00 2001 From: Ehsan Iran Nejad Date: Wed, 15 Mar 2023 12:45:58 -0700 Subject: [PATCH] skip handling reflection-only assemblies --- src/runtime/AssemblyManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/AssemblyManager.cs b/src/runtime/AssemblyManager.cs index a8bbd1f6c..d5a584611 100644 --- a/src/runtime/AssemblyManager.cs +++ b/src/runtime/AssemblyManager.cs @@ -96,6 +96,8 @@ internal static void Shutdown() private static void AssemblyLoadHandler(object ob, AssemblyLoadEventArgs args) { Assembly assembly = args.LoadedAssembly; + if (assembly.ReflectionOnly) return; + assemblies.Enqueue(assembly); ScanAssembly(assembly); }