Commit 2b1762f
authored
Fix Dll SearchPath to include Assembly Directory. (#69)
Commit 28b4639 added the ability to load the 32bit
dll from the current directory. However on MacOS/dotnet
this does not work. The current `DllImportSearchPath`
setting only allows for loading from known `Safe` paths.
On MacOS/dotnet it seems this does not include the
assembly directoy. Our current setup in Xamarin.Android
places the native libaries in the same directory as
the assembly, so we need that to work.
The fix is to include the value `AssemblyDirectory` in the
`DllImportSearchPath` setting as well as the `SafeDirectories`
value. This should allow `dotnet` to find native libraries which
are in the same directory.1 parent 28b4639 commit 2b1762f
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments