Mono historically was quite lax in how it resolved assembly references - it
would pick the first assembly with a matching simple name. The "strict"
mode (available in framework Mono with `--assembly-loader=strict`) follows the
spec behavior: the version and public key token of the candidate assembly must
match what is requested.
Commit migrated from https://github.com/mono/mono/commit/
d8a679375d706e992d590c3eb90e1c57cb2864e7
if (native_lib_paths != NULL)
mono_set_pinvoke_search_directories (native_lib_paths->dir_count, native_lib_paths->dirs);
+ /*
+ * Don't use Mono's legacy assembly name matching behavior - respect
+ * the requested version and public key token.
+ */
+ mono_loader_set_strict_strong_names (TRUE);
+
return 0;
}