How to Resolve IWebHostEnvironment in .NET Core 8.0? I’m working on migrating a project from ASP.NET Core 5.0 to .NET Core 8.0. In my project,