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)
33hostingEnvironment.WebRootPath = wwwroot; 38hostingEnvironment.WebRootPath = Path.Combine(hostingEnvironment.ContentRootPath, webRoot); 43hostingEnvironment.WebRootPath = Path.GetFullPath(hostingEnvironment.WebRootPath);
9 references to WebRootPath
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
59private async Task WebRootPath(HttpContext ctx) => await ctx.Response.WriteAsync(ctx.RequestServices.GetService<Microsoft.AspNetCore.Hosting.IHostingEnvironment>().WebRootPath);
Microsoft.AspNetCore.Hosting (5)
Internal\HostingEnvironmentExtensions.cs (5)
41if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath)) 43hostingEnvironment.WebRootPath = Path.GetFullPath(hostingEnvironment.WebRootPath); 44if (!Directory.Exists(hostingEnvironment.WebRootPath)) 46Directory.CreateDirectory(hostingEnvironment.WebRootPath); 48hostingEnvironment.WebRootFileProvider = new PhysicalFileProvider(hostingEnvironment.WebRootPath);
Microsoft.AspNetCore.Hosting.Abstractions (1)
IHostingEnvironment.cs (1)
36/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="WebRootPath"/>.
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
854Assert.Equal(Path.GetFullPath("testroot"), env1.WebRootPath);
Microsoft.AspNetCore.SpaServices.Extensions (1)
SpaOptions.cs (1)
58/// <see cref="IHostingEnvironment.WebRootPath"/>, which by default is