update comment about precompilation (cr feedback)

This commit is contained in:
Ryan Nowak 2014-12-11 09:41:52 -08:00
parent c6bc97afbf
commit 09b01d8f32
1 changed files with 3 additions and 4 deletions

View File

@ -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<IApplicationEnvironment>();