Support `DllImportSearchPath.AssemblyDirectory` for NativeAOT applications (#90120)
authorAaron Robinson <arobins@microsoft.com>
Tue, 8 Aug 2023 14:38:54 +0000 (07:38 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 14:38:54 +0000 (07:38 -0700)
commit33400d84bfad2124627ad4b8b57d560b3482e3a6
tree7b5dbb06ac25b334c3af7b9b0fb18554977543e4
parent3c5ad6c677b4a3d12bc6a776d654558cca2c36a9
Support `DllImportSearchPath.AssemblyDirectory` for NativeAOT applications (#90120)

* NativeAOT - Suppress OS dialog for LoadLibrary failures
on Windows.

* Update NativeAOT to load from application
directory when DllImportSearchPath.AssemblyDirectory
is defined.
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.NativeAot.Windows.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.NativeAot.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetThreadErrorMode.cs
src/tests/Interop/DllImportSearchPaths/DllImportSearchPathsTest.cs
src/tests/Interop/DllImportSearchPaths/DllImportSearchPathsTest.csproj
src/tests/Interop/NativeLibrary/API/NativeLibraryTests.cs
src/tests/Interop/NativeLibrary/API/NativeLibraryTests.csproj
src/tests/issues.targets