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