1 implementation of WebRootPath
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
20public string WebRootPath { get; set; } = default!;
3 writes to WebRootPath
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEnvironmentExtensions.cs (3)
84hostingEnvironment.WebRootPath = wwwroot; 89hostingEnvironment.WebRootPath = Path.Combine(hostingEnvironment.ContentRootPath, webRoot); 94hostingEnvironment.WebRootPath = Path.GetFullPath(hostingEnvironment.WebRootPath);
19 references to WebRootPath
Microsoft.AspNetCore (2)
ConfigureWebHostBuilder.cs (2)
43var previousWebRoot = HostingPathResolver.ResolvePath(_context.HostingEnvironment.WebRootPath, previousContentRoot); 119var previousWebRoot = HostingPathResolver.ResolvePath(_context.HostingEnvironment.WebRootPath);
Microsoft.AspNetCore.Hosting (5)
Internal\HostingEnvironmentExtensions.cs (5)
92if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath)) 94hostingEnvironment.WebRootPath = Path.GetFullPath(hostingEnvironment.WebRootPath); 95if (!Directory.Exists(hostingEnvironment.WebRootPath)) 97Directory.CreateDirectory(hostingEnvironment.WebRootPath); 99hostingEnvironment.WebRootFileProvider = new PhysicalFileProvider(hostingEnvironment.WebRootPath);
Microsoft.AspNetCore.Hosting.Abstractions (1)
IWebHostEnvironment.cs (1)
21/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="WebRootPath"/>.
Microsoft.AspNetCore.StaticFiles (11)
DefaultFilesExtensions.cs (2)
22/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/> 39/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/>
DirectoryBrowserExtensions.cs (2)
22/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/> 39/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/>
FileServerExtensions.cs (3)
21/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/> 38/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/> 58/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/>
Infrastructure\SharedOptionsBase.cs (1)
45/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/>
StaticFileExtensions.cs (2)
22/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/> 39/// Files are served from the path specified in <see cref="IWebHostEnvironment.WebRootPath"/>
StaticFileMiddleware.cs (1)
49_logger.WebRootPathNotFound(Path.GetFullPath(Path.Combine(hostingEnv.ContentRootPath, hostingEnv.WebRootPath ?? "wwwroot")));