diff --git a/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs b/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs index 309d9eff..5c96962f 100644 --- a/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs +++ b/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs @@ -98,21 +98,6 @@ private IServiceCollection BuildHostingServices() services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.Runtime)); } - if (PlatformServices.Default?.AssemblyLoadContextAccessor != null) - { - services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.AssemblyLoadContextAccessor)); - } - - if (PlatformServices.Default?.AssemblyLoaderContainer != null) - { - services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.AssemblyLoaderContainer)); - } - - if (PlatformServices.Default?.LibraryManager != null) - { - services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.LibraryManager)); - } - return services; }