Find HttpListenerRequest.UserAgent nullable change
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindHttpListenerRequestUserAgentArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds accesses to HttpListenerRequest.UserAgent which changed from string to string? in .NET 9. Code that assumes UserAgent is non-null may throw NullReferenceException.
Single recipesearchdotnetnetworkingnet9Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindHttpListenerRequestUserAgentIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet