Commit 8e22fe1
authored
Use RuntimeInformation to determine the Processor architecture. (#108)
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.1 parent 33f5b01 commit 8e22fe1Copy full SHA for 8e22fe1
File tree
Expand file treeCollapse file tree
2 files changed
+14
-4
lines changedOpen diff view settings
Filter options
- LibZipSharp
- Xamarin.Tools.Zip
Expand file treeCollapse file tree
2 files changed
+14
-4
lines changedOpen diff view settings
Collapse file
LibZipSharp/Xamarin.LibZipSharp.targets
Copy file name to clipboardExpand all lines: LibZipSharp/Xamarin.LibZipSharp.targets+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
|
Collapse file
LibZipSharp/Xamarin.Tools.Zip/Native.cs
Copy file name to clipboardExpand all lines: LibZipSharp/Xamarin.Tools.Zip/Native.cs+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
455 | 455 | |
456 | 456 | |
457 | 457 | |
458 | | - |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
459 | 469 | |
460 | 470 | |
461 | 471 | |
|
0 commit comments