Preserve hosting environment predicate binding during type migration

Proprietary

Before migrating legacy ASP.NET IHostingEnvironment, rewrite resolved IsDevelopment/IsStaging/IsProduction calls to explicit modern HostEnvironmentEnvExtensions calls. Preserve receiver evaluation and avoid missing or competing extension imports. Standalone preparation leaf; pair with the environment type migration. Leave custom/static/unresolved calls, other overloads, conditional snapshots and expression contexts for review.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseModernHostingEnvironmentPredicates
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseModernHostingEnvironmentPredicates

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.