From 710b9ad4ed12080bce362fb3d32626d516edaddf Mon Sep 17 00:00:00 2001 From: David Fowler Date: Mon, 3 Mar 2014 23:25:24 -0800 Subject: [PATCH] Use csc compilation to avoid temporary churn in host services --- src/Microsoft.AspNet.Mvc/MvcServices.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index 7476ab6c20..789ebf9bd1 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -37,15 +37,12 @@ namespace Microsoft.AspNet.Mvc #if NET45 // TODO: Container chaining to flow services from the host to this container - if (hostServiceProvider == null) - { - Add(); - } - else - { - // TODO: Make this work like normal when we get container chaining - AddInstance(new RoslynCompilationService(hostServiceProvider)); - } + + Add(); + + // TODO: Make this work like normal when we get container chaining + // TODO: Update this when we have the new host services + // AddInstance(new RoslynCompilationService(hostServiceProvider)); #endif Add(); Add();