MichaCo / DnsClient.NET

DnsClient.NET is a simple yet very powerful and high performant open source library for the .NET Framework to do DNS lookups
https://dnsclient.michaco.net
Apache License 2.0
762 stars 136 forks source link

Reflection-free compatibility changes #214

Closed RatherLogical closed 4 days ago

RatherLogical commented 4 months ago

APIs that use reflection will throw errors at runtime when publishing in AOT's reflection-free mode. I've changed the categoryName param in your logger to use a string instead of reflection. The only downside is that now you have to manually maintain the namespace and class names. This change allows your library to work for my use case, but if there is any other use of reflection in other parts of your lib we can fix that too.

MichaCo commented 4 days ago

Don't really know why this is needed, feels kinda stupid, but ok why not