Skip to content

Conversation

@dellis1972
Copy link
Contributor

See https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.architecture?view=net-6.0

Now that we ship an arm based native library on windows we need to be
able to determine the underlying library to load. We can use the
RuntimeInformation.ProcessArchitecture value to get this data.

Then based on that we can load from x86, x64 or arm64 subdirectories.
Note we will still fallback to loading from the current directory , but
the preference is to load from on of the architecture specific sub directories.

See https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.architecture?view=net-6.0

Now that we ship an arm based native library on windows we need to be
able to determine the underlying library to load. We can use the
`RuntimeInformation.ProcessArchitecture` value to get this data.

Then based on that we can load from `x86`, `x64` or `arm64` subdirectories.
Note we will still fallback to loading from the current directory , but
the preference is to load from on of the architecture specific sub directories.
@dellis1972 dellis1972 marked this pull request as ready for review February 23, 2022 10:34
@dellis1972 dellis1972 requested a review from grendello February 23, 2022 10:35
@grendello grendello merged commit 8e22fe1 into dotnet:main Feb 23, 2022
@dellis1972 dellis1972 deleted the loadingarm branch February 23, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants