mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description <!-- Describe your changes. --> Xamarin is EOL so remove support. The MAUI targets are EOL and need updating. https://dotnet.microsoft.com/en-us/platform/support/policy/maui Other cleanups: - netcoreapp3.1 is EOL - the net6 macos target was added in the mistaken belief that was for MAUI mac support, but that is actually via the mac-catalyst target which we recently added support for. - some CIs that were using the old build setup of splitting pre-net6 targets. The ORT C# bindings csproj was updated last year and the `PreNet6` and `SelectedTargets` properties no longer exist as they were replaced by the simpler `IncludeMobileTargets` property. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Remove EOL components. #21058 |
||
|---|---|---|
| .. | ||
| Microsoft.ML.OnnxRuntime.InferenceSample | ||
| Microsoft.ML.OnnxRuntime.InferenceSample.Maui | ||
| Microsoft.ML.OnnxRuntime.InferenceSample.NetCoreApp | ||
| readme.md | ||
To test the iOS or Android samples the native build of ONNX Runtime is required and must be in a specific location.
Only the native build for the platform you are testing on is required. e.g. if you're testing using an Android device that is arm64, you only need the libonnxruntime.so for arm64-v8a. The version of the native build should match the checked-out version of the ONNX Runtime repository you're currently using as closely as possible. Otherwise mismatches with the native entry points is possible and could cause crashes.
To acquire the native build you can:
- build it yourself
- extract it from the Microsoft.ML.OnnxRuntime nuget package using NuGetPackageExplorer
- or if you have access to the internal packaging pipelines
- the Zip-Nuget-Java-Nodejs Packaging Pipeline produces the native package as an artifact under
drop-signed-nuget-CPU- run a build for your current branch in the pipeline to ensure the native build matches exactly
- the Zip-Nuget-Java-Nodejs Packaging Pipeline produces the native package as an artifact under
For iOS the native build should be at one or more of:
- \build\iOS\iphoneos\Release\Release-iphoneos\onnxruntime.framework for an iOS device
- \build\iOS\iphonesimulator\Release\Release-iphonesimulator\onnxruntime.framework for an iOS simulator
For Android the native build should be at one or more of:
- \build\Android\arm64-v8a\Release\libonnxruntime.so for an 64-bit arm device
- \build\Android\armeabi-v7a\Release\libonnxruntime.so for an 32-bit arm device
- \build\Android\x86\Release\libonnxruntime.so for an x86 Android emulator
- \build\Android\x86_64\Release\libonnxruntime.so for an x86_64 Android emulator