public DefaultAssemblyLocator(IHostingEnvironment environment) { _entryAssembly = Assembly.Load(new AssemblyName(environment.ApplicationName)); _dependencyContext = DependencyContext.Load(_entryAssembly); }