lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 commented on issue #311: Method 'get_properties' in ConfigurationBuilder does not have an impl.
Date Mon, 20 Jul 2020 20:16:57 GMT

NightOwl888 commented on issue #311:
URL: https://github.com/apache/lucenenet/issues/311#issuecomment-661310572


   Thanks for the report.
   
   I was able to reproduce this. It is only happening on .NET Framework and only if you are
using `Microsoft.Extensions.Configuration` higher than version 1.1.2 within your project.
For compatibility reasons, we reference `Microsoft.Extensions.Configuration.Abstractions`
version 1.1.2 in .NET Framework, since higher versions only support .NET Framework 4.6.1 and
higher.
   
   There was a breaking change introduced in `IConfigurationBuilder` between `Microsoft.Extensions.Configuration.Abstractions`
version 1.1.2 and version 2.0.0 where `IConfigurationBuilder.Properties` was changed from
`Dictionary<string, object>` to `IDictionary<string, object>` so the `DefaultConfigurationFactory`
currently requires you to use components from `Microsoft.Extensions.Configuration` version
1.1.2 on .NET Framework.
   
   If downgrading `Microsoft.Extensions.Configuration` is not an option, then you must downgrade
to `Lucene.Net` version 4.8.0-beta-00008.
   
   We need to get rid of the `IConfigurationBuilder` implementation to fix this problem, as
the only requirement we have internally is to implement `IConfiguration` to provide a logical
default that reads system variables. Unfortunately, this issue is also preventing .NET Framework
users from providing their own `IConfigurationFactory` implementation to override because
the exception occurs in the initialization before an alternative implementation can be set.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message