I'll be honest I'm not entirely sure what I'm doing with the version numbers here. I only have .NET Core 5.0 installed. The change here seemed to be necessary to load the configuration as expected in the .NET 5.0. I did originally try this with the Target Framework updated to 5.0 as well and that also worked, but I wasn't sure if it was a necessary change so I left it out. I believe the LoggerProviderOptions class is available from 3.0 so I've set the version requirement to that.
I'll be honest I'm not entirely sure what I'm doing with the version numbers here. I only have .NET Core 5.0 installed. The change here seemed to be necessary to load the configuration as expected in the .NET 5.0. I did originally try this with the Target Framework updated to 5.0 as well and that also worked, but I wasn't sure if it was a necessary change so I left it out. I believe the LoggerProviderOptions class is available from 3.0 so I've set the version requirement to that.