static Driver() { L = Log.ForContext <Driver>(); AllLoadedAssemblies = Assembly.GetExecutingAssembly().LoadAllFrom("ClassifyBot.*.dll", "ClassifyBot.Base.dll", "ClassifyBot.Cli.dll"); foreach (string n in ExcludedAssemblyNames) { if (AllLoadedAssemblies.Any(a => a.FullName.StartsWith(n))) { AllLoadedAssemblies.RemoveAll(a => a.FullName.StartsWith(n)); } } if (AllLoadedAssemblies == null) { throw new Exception("Did not load assembly ClassifyBot.Core.dll"); } }