Remove compilation options from services.
- This was a temporary work around to allow MVC to build. - Reacts to aspnet/Mvc#3383
This commit is contained in:
parent
4702752384
commit
8e946798a1
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Hosting
|
|||
|
||||
public const string OldServerKey = "server";
|
||||
public const string ServerKey = "Hosting:Server";
|
||||
|
||||
|
||||
private readonly IHostingEnvironment _hostingEnvironment;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
private readonly IConfiguration _config;
|
||||
|
|
@ -79,7 +79,7 @@ namespace Microsoft.AspNet.Hosting
|
|||
services.AddTransient<IHttpContextFactory, HttpContextFactory>();
|
||||
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||
services.AddLogging();
|
||||
|
||||
|
||||
var diagnosticSource = new DiagnosticListener("Microsoft.AspNet");
|
||||
services.AddInstance<DiagnosticSource>(diagnosticSource);
|
||||
services.AddInstance<DiagnosticListener>(diagnosticSource);
|
||||
|
|
@ -101,13 +101,6 @@ namespace Microsoft.AspNet.Hosting
|
|||
services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.LibraryManager));
|
||||
}
|
||||
|
||||
// TODO: Remove this
|
||||
if (CompilationServices.Default != null)
|
||||
{
|
||||
services.TryAdd(ServiceDescriptor.Instance(CompilationServices.Default.LibraryExporter));
|
||||
services.TryAdd(ServiceDescriptor.Instance(CompilationServices.Default.CompilerOptionsProvider));
|
||||
}
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue