<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.10" />

Microsoft.Extensions.Hosting.IHostingEnvironment

public interface IHostingEnvironment
Provides information about the hosting environment an application is running in.

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostEnvironment.

namespace Microsoft.Extensions.Hosting { public interface IHostingEnvironment { string EnvironmentName { get; set; } string ApplicationName { get; set; } string ContentRootPath { get; set; } IFileProvider ContentRootFileProvider { get; set; } } }