markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

Chapter 4: TraceSwitch binding #55

Closed danielwithme closed 1 year ago

danielwithme commented 1 year ago

Since Microsoft.Extensions.Configuration.Binder 7.0.3 or later, this setting will throw exception: { "PacktSwitch": { "Level": "Info" } }

To fix it, change the above configuration into: { "PacktSwitch": { "Level": "Info", "Value": "3" } }

Reference: https://github.com/dotnet/runtime/issues/82998

markjprice commented 1 year ago

Yes, this is already in the errata: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-178---reviewing-project-packages