12 references to ViewLocationFormats
Microsoft.AspNetCore.Mvc.Razor (7)
RazorViewEngine.cs (5)
22
/// <see cref="RazorViewEngineOptions.
ViewLocationFormats
"/>
59
if (_options.
ViewLocationFormats
.Count == 0)
62
Resources.FormatViewLocationFormatsIsRequired(nameof(RazorViewEngineOptions.
ViewLocationFormats
)),
318
return _options.
ViewLocationFormats
;
333
return _options.
ViewLocationFormats
;
RazorViewEngineOptionsSetup.cs (2)
14
options.
ViewLocationFormats
.Add("/Views/{1}/{0}" + RazorViewEngine.ViewExtension);
15
options.
ViewLocationFormats
.Add("/Views/Shared/{0}" + RazorViewEngine.ViewExtension);
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorViewEngineOptionsTest.cs (1)
67
var formats = accessor.Value.
ViewLocationFormats
;
RazorViewEngineTest.cs (2)
2083
options.
ViewLocationFormats
.Clear();
2087
options.
ViewLocationFormats
.Add(location);
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
57
options.
ViewLocationFormats
.Add(pagesSharedDirectory);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetupTest.cs (1)
137
Assert.Equal(expected, viewEngineOptions.
ViewLocationFormats
);