From 09b01d8f3212f19fcb095ffbf1fe4701c69e47ec Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 11 Dec 2014 09:41:52 -0800 Subject: [PATCH] update comment about precompilation (cr feedback) --- .../Compiler/PreProcess/RazorPreCompilation.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/WebSites/PrecompilationWebSite/Compiler/PreProcess/RazorPreCompilation.cs b/test/WebSites/PrecompilationWebSite/Compiler/PreProcess/RazorPreCompilation.cs index bd1d3d300b..eafcca848b 100644 --- a/test/WebSites/PrecompilationWebSite/Compiler/PreProcess/RazorPreCompilation.cs +++ b/test/WebSites/PrecompilationWebSite/Compiler/PreProcess/RazorPreCompilation.cs @@ -18,10 +18,9 @@ namespace PrecompilationWebSite { } - // When running in memory tests the application base path will point to the functional tests - // project folder. - // We need to replace it to point to the actual precompilation website so that the views can - // be found. + // We need to construct an IApplicationEnvironment with a base path that that matches this + // website, in order to find the razor files. This is needed because we don't have a guarantee that + // the base path of the current app is this site (ex: functional tests). public static IServiceProvider ReplaceProvider(IServiceProvider provider) { var originalEnvironment = provider.GetService();