update comment about precompilation (cr feedback)
This commit is contained in:
parent
c6bc97afbf
commit
09b01d8f32
|
|
@ -18,10 +18,9 @@ namespace PrecompilationWebSite
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// When running in memory tests the application base path will point to the functional tests
|
// We need to construct an IApplicationEnvironment with a base path that that matches this
|
||||||
// project folder.
|
// website, in order to find the razor files. This is needed because we don't have a guarantee that
|
||||||
// We need to replace it to point to the actual precompilation website so that the views can
|
// the base path of the current app is this site (ex: functional tests).
|
||||||
// be found.
|
|
||||||
public static IServiceProvider ReplaceProvider(IServiceProvider provider)
|
public static IServiceProvider ReplaceProvider(IServiceProvider provider)
|
||||||
{
|
{
|
||||||
var originalEnvironment = provider.GetService<IApplicationEnvironment>();
|
var originalEnvironment = provider.GetService<IApplicationEnvironment>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue