public Startup(IWebHostEnvironment environment) { _assemblyNames = new[] { "Examples." }; var excludeThese = PathParser.FindAllSubDirectories($"{environment.ContentRootPath}\\**\\obj") .Select(di => $"!{di.FullName}"); _assemblyPaths = new List <string>(excludeThese) { environment.ContentRootPath, new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName }.ToArray(); }