Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix DllImport probing #689
CoreCLR allows for more variations of DllImport probing:
Today it's missing the prefixes.
We should fallback through the precedence where we consider all possible suffixes. Today we work in most cases due to co-location of native files and package rooting (eg: root the file containing one native impl and all are included) but if that package is marked trimmable, we'd miss the SO if a dll also existed.
I think our algo should look similar to the coreclr's fallback list, except we consider all prefixes/suffixes rather than just the one for our current platform.