What is the equivalent of HttpRuntime.AppDomainAppPath in .NET Core? I moved a project from ASP.NET to core, and a few Libraries are not included (Such as
The IHostingEnvironment interface provides information about the environment including the base path (documentation). You can get an instance using dependency injection.
public class Startup
{
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// env.ContentRootPath;
}
}