Use csc compilation to avoid temporary churn in host services

This commit is contained in:
David Fowler 2014-03-03 23:25:24 -08:00
parent 48738b91f4
commit 710b9ad4ed
1 changed files with 6 additions and 9 deletions

View File

@ -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<ICompilationService, CscBasedCompilationService>();
}
else
{
// TODO: Make this work like normal when we get container chaining
AddInstance<ICompilationService>(new RoslynCompilationService(hostServiceProvider));
}
Add<ICompilationService, CscBasedCompilationService>();
// TODO: Make this work like normal when we get container chaining
// TODO: Update this when we have the new host services
// AddInstance<ICompilationService>(new RoslynCompilationService(hostServiceProvider));
#endif
Add<IRazorCompilationService, RazorCompilationService>();
Add<IVirtualPathViewFactory, VirtualPathViewFactory>();