Replace internal FormattedLogValues with a type alias
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.ReplaceFormattedLogValuesArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetMicrosoft.Extensions.Logging.Internal.FormattedLogValues was made internal in .NET 6+. Replace the now-dead using Microsoft.Extensions.Logging.Internal; with a FormattedLogValues type alias for IReadOnlyList<KeyValuePair<string, object>> (the public interface it implements) so existing references keep compiling.
Single recipecsharpdotnetloggingProprietary
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.Net6.ReplaceFormattedLogValuesIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet