21 references to ViewExtension
Microsoft.AspNetCore.Mvc.Razor (6)
RazorViewEngine.cs (1)
491return name.EndsWith(ViewExtension, StringComparison.OrdinalIgnoreCase);
RazorViewEngineOptionsSetup.cs (5)
14options.ViewLocationFormats.Add("/Views/{1}/{0}" + RazorViewEngine.ViewExtension); 15options.ViewLocationFormats.Add("/Views/Shared/{0}" + RazorViewEngine.ViewExtension); 17options.AreaViewLocationFormats.Add("/Areas/{2}/Views/{1}/{0}" + RazorViewEngine.ViewExtension); 18options.AreaViewLocationFormats.Add("/Areas/{2}/Views/Shared/{0}" + RazorViewEngine.ViewExtension); 19options.AreaViewLocationFormats.Add("/Views/Shared/{0}" + RazorViewEngine.ViewExtension);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (4)
13private static readonly string IndexFileName = "Index" + RazorViewEngine.ViewExtension; 118var viewEnginePath = relativePath.Substring(pageNameIndex, relativePath.Length - pageNameIndex - RazorViewEngine.ViewExtension.Length); 130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase)); 132var endIndex = path.Length - RazorViewEngine.ViewExtension.Length;
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageRouteModelFactory.cs (4)
13private static readonly string IndexFileName = "Index" + RazorViewEngine.ViewExtension; 118var viewEnginePath = relativePath.Substring(pageNameIndex, relativePath.Length - pageNameIndex - RazorViewEngine.ViewExtension.Length); 130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase)); 132var endIndex = path.Length - RazorViewEngine.ViewExtension.Length;
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (7)
27var defaultPageSearchPath = CombinePath(rootDirectory, "{1}/{0}" + RazorViewEngine.ViewExtension); 31var pagesSharedDirectory = CombinePath(rootDirectory, "Shared/{0}" + RazorViewEngine.ViewExtension); 34options.PageViewLocationFormats.Add("/Views/Shared/{0}" + RazorViewEngine.ViewExtension); 45var areaSearchPath = CombinePath(areaPagesDirectory, "{1}/{0}" + RazorViewEngine.ViewExtension); 48var areaPagesSharedSearchPath = CombinePath(areaPagesDirectory, "Shared/{0}" + RazorViewEngine.ViewExtension); 51var areaViewsSharedSearchPath = CombinePath(areaDirectory, "Views/Shared/{0}" + RazorViewEngine.ViewExtension); 55options.AreaPageViewLocationFormats.Add("/Views/Shared/{0}" + RazorViewEngine.ViewExtension);