confluentinc / avro

Mirror of Apache Avro
Apache License 2.0
12 stars 20 forks source link

ignore GetTypes type load failure #6

Closed mhowlett closed 6 years ago

mhowlett commented 6 years ago

Evidently on AppDomain.CurrentDomain.GetAssemblies() can return assemblies that are not available in some scenarios (on .NET Core) which causes assembly.GetTypes(); to throw an exception. Rather than abort, we should just continue the search over all the assemblies that are available.

This is being hit when Confluent.Kafka.Avro is used in the dotnet test framework. This PR will resolve that issue.