Latest NetCoreAppSettings dont work with Dictionary<string,string> which we use to retrieve connection strings

Hi,

The following code in NeCoreAppSettings can’t convert to a Dictionary<string, string>.

if (typeof(T).HasInterface(typeof(IEnumerable)))
{
	var values = config.GetChildren().Map(x => x.Value);
	return values.ConvertTo<T>();
}

Unfortunately we were using MyGet in our CI/CD and experienced the error, while it was working fine on localhost, as it for some reason was using an older assembly.

I’ve prevented it from trying to convert a list to a dictionary in this commit.

This change is available from the latest v5.4.1 that’s now available on MyGet.

Thank you, that solves it :smiley: