关于[Working with IWebHostEnvironment and IHostingEnvironment in dual targeted ASP.NET Core Projects]的摘要:
With .NET Core 3.1 Microsoft broke a fairly low level abstraction by effectively renaming IHostingEnvironment and replacing it with IWebHostEnvironment. IHostingEnvironment still exists in .NET Core 3.x and can still be used and it still works, but it's been marked as deprecated and will be removed ...