Use csc compilation to avoid temporary churn in host services
This commit is contained in:
parent
48738b91f4
commit
710b9ad4ed
|
|
@ -37,15 +37,12 @@ namespace Microsoft.AspNet.Mvc
|
||||||
|
|
||||||
#if NET45
|
#if NET45
|
||||||
// TODO: Container chaining to flow services from the host to this container
|
// TODO: Container chaining to flow services from the host to this container
|
||||||
if (hostServiceProvider == null)
|
|
||||||
{
|
Add<ICompilationService, CscBasedCompilationService>();
|
||||||
Add<ICompilationService, CscBasedCompilationService>();
|
|
||||||
}
|
// TODO: Make this work like normal when we get container chaining
|
||||||
else
|
// TODO: Update this when we have the new host services
|
||||||
{
|
// AddInstance<ICompilationService>(new RoslynCompilationService(hostServiceProvider));
|
||||||
// TODO: Make this work like normal when we get container chaining
|
|
||||||
AddInstance<ICompilationService>(new RoslynCompilationService(hostServiceProvider));
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
Add<IRazorCompilationService, RazorCompilationService>();
|
Add<IRazorCompilationService, RazorCompilationService>();
|
||||||
Add<IVirtualPathViewFactory, VirtualPathViewFactory>();
|
Add<IVirtualPathViewFactory, VirtualPathViewFactory>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue