onnxruntime/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI
Caroline Zhu 2fc75a45a2
[mobile] Add Android BrowserStack test project back (#23551)
## Description
Follow-up for #23383 and #23474

* Adds android BrowserStack test back in
* Modifies MAUI csproj file to build into an APK


### Motivation and Context
There were 2 issues with the previous PRs:
1. The updated MAUI .csproj file configuration failed when building to
iOS and MacCatalyst. This caused problems in the packaging pipeline
because we build all C# projects in the .soln file in the packaging
pipeline. Removed the Mac & iOS build targets for now

3. The previous MAUI .csproj file configuration did not build into an
APK. It was missing the `<OutputType>` XAML tag and the Android package
type XAML tag.
2025-02-04 14:39:50 -08:00
..
Platforms
Properties
Resources
App.xaml
App.xaml.cs
AppShell.xaml
AppShell.xaml.cs
MainPage.xaml
MainPage.xaml.cs
MauiProgram.cs
Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj [mobile] Add Android BrowserStack test project back (#23551) 2025-02-04 14:39:50 -08:00
ReadMe.md Rework the native library usage so that a pre-built ORT native package can be easily used (#22345) 2024-11-01 11:03:33 -07:00
Usings.cs

The MAUI test project can be optionally used with a pre-built ONNX Runtime native nuget package (Microsoft.ML.OnnxRuntime).

To do so, specify the UsePrebuiltNativePackage and CurrentOnnxRuntimeVersion properties when building the project. These can be set via the command-line or as environment variables.

For example:

dotnet build csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI\Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=1.19.2 --source directory_containing_native_nuget_package --source https://api.nuget.org/v3/index.json