internal static IBinderType LoadAndCheckAssembly(MetadataLoadContext context, string assemblyPath) { BinderType result = null; try { var assembly = context.LoadFromAssemblyPath(assemblyPath); if (assembly != null) { return(CheckAssembly(assembly)); } } catch { // most failures here are situations that aren't relevant, so just fail silently } return(result); }