1 implementation of WebRootPath
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
20
public string
WebRootPath
{ get; set; } = default!;
3 writes to WebRootPath
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEnvironmentExtensions.cs (3)
33
hostingEnvironment.
WebRootPath
= wwwroot;
38
hostingEnvironment.
WebRootPath
= Path.Combine(hostingEnvironment.ContentRootPath, webRoot);
43
hostingEnvironment.
WebRootPath
= Path.GetFullPath(hostingEnvironment.WebRootPath);
6 references to WebRootPath
Microsoft.AspNetCore.Hosting (5)
Internal\HostingEnvironmentExtensions.cs (5)
41
if (!string.IsNullOrEmpty(hostingEnvironment.
WebRootPath
))
43
hostingEnvironment.WebRootPath = Path.GetFullPath(hostingEnvironment.
WebRootPath
);
44
if (!Directory.Exists(hostingEnvironment.
WebRootPath
))
46
Directory.CreateDirectory(hostingEnvironment.
WebRootPath
);
48
hostingEnvironment.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
"/>.