aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
641 stars 85 forks source link

Remove 'IsVisible' check from configuration builder #80

Closed maelgrove closed 5 years ago

maelgrove commented 5 years ago

The current configuration contract verification checks in the ConfigurationBuilder expect the interface to be visible from the outside of the assembly. This kinda makes sense as Castle.Core needs to be able to reflect the type in order to create a proxy, but being forced to expose a possibly internal contract isn't that nice either.

Suggestion: Remove the .IsVisible check and state in the documentation that if internal types want to be used, users should declare [assembly: InternalsVisibleTo ("DynamicProxyGenAssembly2")] within their assembly.

aloneguid commented 5 years ago

Makes perfect sense. Unless someone thinks of a better idea how to make it possible to consume private types.

RyanLilla commented 5 years ago

@aloneguid I can take this on if it is still available!

Just to make sure I am understanding the requests correctly:

Does this sound right?

aloneguid commented 5 years ago

Please go ahead, no one started working on it yet to my knowledge.