From d9e61933f359a8cb1cb852c682ab0edc260e458e Mon Sep 17 00:00:00 2001 From: Nathan Grier Date: Thu, 15 Dec 2016 09:16:00 -0600 Subject: [PATCH] Searches all subdirectories in the bin folder when compiling list of assemblies to load. --- WebActivator/ActivationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebActivator/ActivationManager.cs b/WebActivator/ActivationManager.cs index a86d963..5ed3e3d 100644 --- a/WebActivator/ActivationManager.cs +++ b/WebActivator/ActivationManager.cs @@ -131,7 +131,7 @@ private static IEnumerable GetAssemblyFiles() string directory = HostingEnvironment.IsHosted ? HttpRuntime.BinDirectory : Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath); - return Directory.GetFiles(directory, "*.dll"); + return Directory.GetFiles(directory, "*.dll", SearchOption.AllDirectories); } // Return all the App_Code assemblies