From 863530dcc4da0acbe248c0783a84ea6826664eea Mon Sep 17 00:00:00 2001 From: Colton Sellers Date: Wed, 3 Feb 2021 17:53:09 -0800 Subject: [PATCH] Reflect PR #35 --- src/runtime/assemblymanager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/runtime/assemblymanager.cs b/src/runtime/assemblymanager.cs index 0387d2dfc..521dd9f93 100644 --- a/src/runtime/assemblymanager.cs +++ b/src/runtime/assemblymanager.cs @@ -264,6 +264,13 @@ internal static void ScanAssembly(Assembly assembly) { return; } + + // skip this assembly, it causes 'GetTypes' call to hang + if (assembly.FullName.StartsWith("System.Windows.Forms")) + { + return; + } + // A couple of things we want to do here: first, we want to // gather a list of all of the namespaces contributed to by // the assembly.