Is there an equivalent for System.Web.Hosting.HostingEnvironment.IsHosted? The IWebHostEnvironment does not contain that property.
>Solution :
There isn’t a .NET Core equivalent for HostingEnvironment.IsHosted. You can read more about it on the following GitHub issue, which also contains some alternatives/workarounds.