private static void ThrowLibNotFoundAny(string[] names, PathResolver pathResolver) { throw new FileNotFoundException ($"Could not find or load the native library from any name: [ {string.Join(", ", names.Select(x => x + " Attempted: (" + string.Join(", ", pathResolver.EnumeratePossibleLibraryLoadTargets(x).Select(x2 => "\"" + x2 + "\"")) + ")"))} ]", names[0]); }
private static void ThrowLibNotFound(string name, PathResolver resolver) { throw new FileNotFoundException($"Could not find or load the native library: {name} Attempted: {string.Join(", ", resolver.EnumeratePossibleLibraryLoadTargets(name).Select(x => "\"" + x + "\""))}", name); }